Skip to content

Commit d484e4f

Browse files
committed
Ignore SQL state 3B001 in releaseSavepoint (for HSQLDB)
Closes gh-35564
1 parent 74dc61b commit d484e4f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spring-jdbc/src/main/java/org/springframework/jdbc/datasource/JdbcTransactionObjectSupport.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@ public void releaseSavepoint(Object savepoint) throws TransactionException {
184184
// typically on Oracle - ignore
185185
}
186186
catch (SQLException ex) {
187+
if ("3B001".equals(ex.getSQLState())) {
188+
// Savepoint already released (HSQLDB, PostgreSQL, DB2) - ignore
189+
return;
190+
}
187191
// ignore Microsoft SQLServerException: This operation is not supported.
188192
String msg = ex.getMessage();
189193
if (msg == null || !msg.contains("not supported")) {

0 commit comments

Comments
 (0)