Skip to content

Commit

Permalink
JdbcSession#close(): skips commit for auto-commit connections
Browse files Browse the repository at this point in the history
  • Loading branch information
virgo47 committed Mar 3, 2021
1 parent 9c12590 commit b9cb333
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -240,7 +240,9 @@ public SupportedDatabase databaseType() {
@Override
public void close() {
try {
commit();
if (!connection.getAutoCommit()) {
commit();
}
connection.close();
} catch (SQLException e) {
throw new SystemException(e);
Expand Down

0 comments on commit b9cb333

Please sign in to comment.