Skip to content

Commit 3074116

Browse files
committed
Ignore SQLFeatureNotSupportedException on releaseSavepoint
Closes gh-33987
1 parent 8d69370 commit 3074116

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

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package org.springframework.jdbc.datasource;
1818

1919
import java.sql.SQLException;
20+
import java.sql.SQLFeatureNotSupportedException;
2021
import java.sql.Savepoint;
2122

2223
import org.springframework.lang.Nullable;
@@ -179,6 +180,9 @@ public void releaseSavepoint(Object savepoint) throws TransactionException {
179180
try {
180181
conHolder.getConnection().releaseSavepoint((Savepoint) savepoint);
181182
}
183+
catch (SQLFeatureNotSupportedException ex) {
184+
// typically on Oracle - ignore
185+
}
182186
catch (Throwable ex) {
183187
throw new TransactionSystemException("Could not explicitly release JDBC savepoint", ex);
184188
}

0 commit comments

Comments
 (0)