Skip to content
Permalink
Browse files

Log ignoring rollback when no transaction in progress (#1549)

* Log ignoring rollback when no transaction in progress

* Change logging level to FINE for debugging
  • Loading branch information...
davecramer committed Aug 29, 2019
1 parent f89e62c commit bda74d7eaa341c02427af4065d8321c8e45bfd83
Showing with 3 additions and 0 deletions.
  1. +3 −0 pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java
@@ -806,6 +806,9 @@ public void rollback() throws SQLException {

if (queryExecutor.getTransactionState() != TransactionState.IDLE) {
executeTransactionCommand(rollbackQuery);
} else {
// just log for debugging
LOGGER.log(Level.FINE, "Rollback requested but no transaction in progress");
}
}

0 comments on commit bda74d7

Please sign in to comment.
You can’t perform that action at this time.