Skip to content

Commit 6c5de48

Browse files
committed
Ignore SQL state 3B001 in HSQLDB exception message as well
Closes gh-35618 See gh-35564
1 parent 9f678ce commit 6c5de48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public void releaseSavepoint(Object savepoint) throws TransactionException {
190190
}
191191
// ignore Microsoft SQLServerException: This operation is not supported.
192192
String msg = ex.getMessage();
193-
if (msg == null || !msg.contains("not supported")) {
193+
if (msg == null || (!msg.contains("not supported") && !msg.contains("3B001"))) {
194194
throw new TransactionSystemException("Could not explicitly release JDBC savepoint", ex);
195195
}
196196
}

0 commit comments

Comments
 (0)