diff --git a/src/main/java/net/snowflake/client/jdbc/SnowflakePreparedStatementV1.java b/src/main/java/net/snowflake/client/jdbc/SnowflakePreparedStatementV1.java index cb32d3d11..360954076 100644 --- a/src/main/java/net/snowflake/client/jdbc/SnowflakePreparedStatementV1.java +++ b/src/main/java/net/snowflake/client/jdbc/SnowflakePreparedStatementV1.java @@ -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(); @@ -853,6 +852,7 @@ VariableTypeArray executeBatchInternal(boolean isLong) throws SQLException { } } } else { + // Array binding is not supported if (isLong) { updateCounts.longArr = executeBatchInternal(false).longArr;