Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -209,22 +209,25 @@ public String nativeSQL(String sql) throws SQLException {

@Override
public void setAutoCommit(boolean autoCommit) throws SQLException {

if (autoCommit) {
return;
}
throw new SQLFeatureNotSupportedException("Transactions are not supported");
}

@Override
public boolean getAutoCommit() throws SQLException {
return false;
return true;
}

@Override
public void commit() throws SQLException {

throw new SQLException("Cannot commit when auto-commit is enabled");
}

@Override
public void rollback() throws SQLException {

throw new SQLException("Cannot rollback when auto-commit is enabled");
}

@Override
Expand Down