mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-20 12:19:16 +00:00
fixed index test for parameter types (SPR-7199)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3332 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user