From 79c202ab14f597e499eb15fc737bb953f7f9e0a3 Mon Sep 17 00:00:00 2001 From: mmoores Date: Wed, 14 Dec 2016 07:48:32 -0800 Subject: [PATCH] Call getColumnRowMapper() to create the row mapper; prevents requirement to override extractReturnedResults(). --- .../main/java/org/springframework/jdbc/core/JdbcTemplate.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcTemplate.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcTemplate.java index 3b115c8c8f..57cc54f081 100644 --- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcTemplate.java +++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcTemplate.java @@ -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 + "'");