From d22a6f9da984202335d12fb150934dffce80c1e6 Mon Sep 17 00:00:00 2001 From: Thomas Risberg Date: Fri, 14 May 2010 12:52:59 +0000 Subject: [PATCH] fixed index test for parameter types (SPR-7199) --- .../springframework/jdbc/core/simple/AbstractJdbcInsert.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.springframework.jdbc/src/main/java/org/springframework/jdbc/core/simple/AbstractJdbcInsert.java b/org.springframework.jdbc/src/main/java/org/springframework/jdbc/core/simple/AbstractJdbcInsert.java index 8c7e1db428e..aef3a3a962e 100644 --- a/org.springframework.jdbc/src/main/java/org/springframework/jdbc/core/simple/AbstractJdbcInsert.java +++ b/org.springframework.jdbc/src/main/java/org/springframework/jdbc/core/simple/AbstractJdbcInsert.java @@ -604,7 +604,7 @@ public abstract class AbstractJdbcInsert { int colIndex = 0; for (Object value : values) { colIndex++; - if (columnTypes == null || colIndex < columnTypes.length) { + if (columnTypes == null || colIndex > columnTypes.length) { StatementCreatorUtils.setParameterValue(preparedStatement, colIndex, SqlTypeValue.TYPE_UNKNOWN, value); } else {