fixed index test for parameter types (SPR-7199)
This commit is contained in:
parent
8ccd74b6c8
commit
d22a6f9da9
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue