Skip to content

Commit

Permalink
Update extensions/jdbc/jdbc-oracle/runtime/src/main/java/io/quarkus/j…
Browse files Browse the repository at this point in the history
…dbc/oracle/runtime/RollbackOnConnectionClosePoolInterceptor.java

Co-authored-by: Yoann Rodière <[email protected]>
  • Loading branch information
gsmet and yrodiere authored Jan 7, 2025
1 parent 918a2ad commit 2bc5cd6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ public void onConnectionDestroy(Connection connection) {
}

try {
if (connection.unwrap(Connection.class) instanceof OracleConnection oracleConnection) {
if (connection.isClosed() || connection.getAutoCommit()) {
return;
}
if (connection.isClosed() || connection.getAutoCommit()) {
return;
}

if (connection.unwrap(Connection.class) instanceof OracleConnection oracleConnection) {
oracleConnection.rollback();
}
} catch (Exception e) {
Expand Down

0 comments on commit 2bc5cd6

Please sign in to comment.