mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Ignore SQL state 3B001 in releaseSavepoint (for HSQLDB)
Closes gh-35564
This commit is contained in:
+4
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user