JdbcTemplate consistently delegates to getColumnMapRowMapper
Issue: SPR-15018
This commit is contained in:
@@ -129,8 +129,8 @@ public class JdbcTemplate extends JdbcAccessor implements JdbcOperations {
|
||||
private int queryTimeout = -1;
|
||||
|
||||
/**
|
||||
* If this variable is set to true then all results checking will be bypassed for any
|
||||
* callable statement processing. This can be used to avoid a bug in some older Oracle
|
||||
* If this variable is set to true, then all results checking will be bypassed for any
|
||||
* callable statement processing. This can be used to avoid a bug in some older Oracle
|
||||
* JDBC drivers like 10.1.0.2.
|
||||
*/
|
||||
private boolean skipResultsProcessing = false;
|
||||
@@ -1177,7 +1177,7 @@ public class JdbcTemplate extends JdbcAccessor implements JdbcOperations {
|
||||
else {
|
||||
if (!this.skipUndeclaredResults) {
|
||||
String rsName = RETURN_RESULT_SET_PREFIX + (rsIndex + 1);
|
||||
SqlReturnResultSet undeclaredRsParam = new SqlReturnResultSet(rsName, new ColumnMapRowMapper());
|
||||
SqlReturnResultSet undeclaredRsParam = new SqlReturnResultSet(rsName, getColumnMapRowMapper());
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Added default SqlReturnResultSet parameter named '" + rsName + "'");
|
||||
}
|
||||
@@ -1242,7 +1242,7 @@ public class JdbcTemplate extends JdbcAccessor implements JdbcOperations {
|
||||
}
|
||||
else {
|
||||
String rsName = outParam.getName();
|
||||
SqlReturnResultSet rsParam = new SqlReturnResultSet(rsName, new ColumnMapRowMapper());
|
||||
SqlReturnResultSet rsParam = new SqlReturnResultSet(rsName, getColumnMapRowMapper());
|
||||
returnedResults.putAll(processResultSet((ResultSet) out, rsParam));
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Added default SqlReturnResultSet parameter named '" + rsName + "'");
|
||||
|
||||
Reference in New Issue
Block a user