Skip to content
Open
Changes from 1 commit
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
8 changes: 6 additions & 2 deletions src/client/jTPCCConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,9 @@ public void commit()
throws SQLException
{
try {
dbConn.commit();
if (dbConn != null && !dbConn.isClosed()) {
dbConn.commit();
}
} catch(SQLException e) {
throw new CommitException();
}
Expand All @@ -316,6 +318,8 @@ public void commit()
public void rollback()
throws SQLException
{
dbConn.rollback();
if (dbConn != null && !dbConn.isClosed()) {
dbConn.rollback();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

格式调一下

}
}
}