You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JDBC driver version: 3.20.0
According to the JDBC 4.3 specification (Section 14.1.2, Successful Execution):
The statement’s batch is reset to empty once executeBatch returns.
However, this is not how it is implemented in the Snowflake JDBC driver. The batch does not get cleared unless explicitly cleared using statement.clearBatch().
(As noted here, this behavior may be appropriate for unsuccessful executions as well. However, for successful executions, the specification explicitly states that the batch should be cleared.)
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Statement batch doesn't reset after statement.executeBatch()
SNOW-1853752: Statement batch doesn't reset after statement.executeBatch()
Dec 11, 2024
Thanks for raising the issue, yes, we are able to reproduce the issue, the batch is not getting cleared after executebatch, we will work on it and update.
JDBC driver version: 3.20.0
According to the JDBC 4.3 specification (Section 14.1.2, Successful Execution):
However, this is not how it is implemented in the Snowflake JDBC driver. The batch does not get cleared unless explicitly cleared using statement.clearBatch().
(As noted here, this behavior may be appropriate for unsuccessful executions as well. However, for successful executions, the specification explicitly states that the batch should be cleared.)
The text was updated successfully, but these errors were encountered: