Skip to content

Conversation

@xtern
Copy link
Contributor

@xtern xtern commented Nov 27, 2025

https://issues.apache.org/jira/browse/IGNITE-27117

The new JDBC driver executes Statement.executeBatch() as a single multi-statement query and counts the number of updates. The problem occurs if one of the statements contains an error, in which case all statements are canceled and as a result the driver may incorrectly count the number of updates.

It is proposed not to cancel all at once.

See changes in MultiStatementHandler.cancelAll() and ScriptTransactionWrapperImpl.finalise(Throwable),

@xtern xtern changed the title IGNITE-27117 In a multistatement query if an error occurs do not abort preceding statements IGNITE-27117 Don't abort execution of previous statements when an error occurs in a multi-statement query. Nov 27, 2025
@xtern xtern changed the title IGNITE-27117 Don't abort execution of previous statements when an error occurs in a multi-statement query. IGNITE-27117 Don't abort execution of previous statements when an error occurs in a multi-statement query Nov 27, 2025
@xtern xtern requested a review from Copilot November 27, 2025 13:47
Copilot finished reviewing on behalf of xtern November 27, 2025 13:50

This comment was marked as resolved.

@xtern xtern marked this pull request as ready for review November 27, 2025 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant