Skip to content

Commit

Permalink
DatabaseTestSystem: commit after executing statement (#4984)
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenMassaro committed Sep 29, 2023
1 parent dc89e19 commit 0266541
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,9 @@ protected void setup() throws SQLException {

public boolean executeSql(String sql) throws SQLException {
try (Statement statement = getConnection().createStatement()) {
return statement.execute(sql);
boolean execute = statement.execute(sql);
getConnection().commit();
return execute;
}
}

Expand Down

0 comments on commit 0266541

Please sign in to comment.