Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Not A Problem
-
2.4.0
-
None
-
Windows, eclipse, oracle
Description
When calling a stored procedure in the following form
{call lsuser.liq_vortex.LIQ_VORTEX_ALL_STRUCT(?,?,?,?,?)}where the last ? is an OUT param, the result is null.
See for comments in the following function in the IbatisProducer class
Look for the NOTE:
private void doQueryForObject(Exchange exchange) throws Exception {
SqlMapClient client = endpoint.getSqlMapClient();
Object result;
Object in = exchange.getIn().getBody();
if (in != null) {
if (LOG.isTraceEnabled())
result = client.queryForObject(statement, in);
NOTE: The in parameter has the resultset, in my case a HashMap, isn't it always a Map?
should be something like:
result = in.get(outParameterKey)
} else {
if (LOG.isTraceEnabled())
result = client.queryForObject(statement);
}
doProcessResult(exchange, result);
}