Skip to content

Commit

Permalink
fix for non array binding
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorna Barber authored and SimbaGithub committed Jul 29, 2022
1 parent 6e75294 commit 18911cb
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -787,17 +787,16 @@ public void clearBatch() throws SQLException {
@Override
public int[] executeBatch() throws SQLException {
logger.debug("executeBatch()", false);
return executeBatchInternal(false).intArr;
return executeBatchInternalWithArrayBind(false).intArr;
}

@Override
public long[] executeLargeBatch() throws SQLException {
logger.debug("executeLargeBatch()", false);
return executeBatchInternal(true).longArr;
return executeBatchInternalWithArrayBind(true).longArr;
}

@Override
VariableTypeArray executeBatchInternal(boolean isLong) throws SQLException {
VariableTypeArray executeBatchInternalWithArrayBind(boolean isLong) throws SQLException {
raiseSQLExceptionIfStatementIsClosed();

describeSqlIfNotTried();
Expand Down Expand Up @@ -853,6 +852,7 @@ VariableTypeArray executeBatchInternal(boolean isLong) throws SQLException {
}
}
} else {
// Array binding is not supported
if (isLong) {
updateCounts.longArr = executeBatchInternal(false).longArr;

Expand Down

0 comments on commit 18911cb

Please sign in to comment.