Skip to content

Commit

Permalink
Merge branch 'auto_commit_memory_allocation' into maintenance/2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Jul 5, 2021
2 parents 1b4452e + 7d72599 commit f744cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/mariadb/jdbc/MariaDbConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ public void setAutoCommit(boolean autoCommit) throws SQLException {

try (Statement stmt = createStatement()) {
stateFlag |= ConnectionState.STATE_AUTOCOMMIT;
stmt.executeUpdate("set autocommit=" + ((autoCommit) ? "1" : "0"));
stmt.executeUpdate(autoCommit ? "set autocommit=1" : "set autocommit=0");
}
}

Expand Down

0 comments on commit f744cbb

Please sign in to comment.