Ignore SQL state 3B001 in releaseSavepoint (for HSQLDB)
Backport Bot / build (push) Waiting to run Details
Build and Deploy Snapshot / Build and Deploy Snapshot (push) Waiting to run Details
Build and Deploy Snapshot / Verify (push) Blocked by required conditions Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:17], map[id:ubuntu-latest name:Linux]) (push) Waiting to run Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:21], map[id:ubuntu-latest name:Linux]) (push) Waiting to run Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:25], map[id:ubuntu-latest name:Linux]) (push) Waiting to run Details
Deploy Docs / Dispatch docs deployment (push) Waiting to run Details

Closes gh-35564
This commit is contained in:
Juergen Hoeller 2025-10-02 13:01:30 +02:00
parent 74dc61b8c4
commit d484e4f3ff
1 changed files with 4 additions and 0 deletions

View File

@ -184,6 +184,10 @@ public abstract class JdbcTransactionObjectSupport implements SavepointManager,
// typically on Oracle - ignore
}
catch (SQLException ex) {
if ("3B001".equals(ex.getSQLState())) {
// Savepoint already released (HSQLDB, PostgreSQL, DB2) - ignore
return;
}
// ignore Microsoft SQLServerException: This operation is not supported.
String msg = ex.getMessage();
if (msg == null || !msg.contains("not supported")) {