AMashenkov commented on code in PR #6772:
URL: https://github.com/apache/ignite-3/pull/6772#discussion_r2431847413
##########
modules/jdbc/src/main/java/org/apache/ignite/internal/jdbc2/JdbcConnection2.java:
##########
@@ -273,6 +324,11 @@ public void commit() throws SQLException {
if (autoCommit) {
throw new
SQLException(TRANSACTION_CANNOT_BE_COMMITED_IN_AUTOCOMMIT_MODE);
+ } else {
+ if (transaction == null) {
+ throw new SQLException(NO_TRANSACTION_TO_COMMIT);
+ }
+ finishTx(true);
}
Review Comment:
```suggestion
}
if (transaction == null) {
throw new SQLException(NO_TRANSACTION_TO_COMMIT);
}
finishTx(true);
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]