Ignore SQLFeatureNotSupportedException on releaseSavepoint

Closes gh-33987
This commit is contained in:
Juergen Hoeller 2024-12-04 16:38:57 +01:00
parent 8d69370b95
commit 307411631d
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,7 @@
package org.springframework.jdbc.datasource;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import java.sql.Savepoint;
import org.springframework.lang.Nullable;
@ -179,6 +180,9 @@ public abstract class JdbcTransactionObjectSupport implements SavepointManager,
try {
conHolder.getConnection().releaseSavepoint((Savepoint) savepoint);
}
catch (SQLFeatureNotSupportedException ex) {
// typically on Oracle - ignore
}
catch (Throwable ex) {
throw new TransactionSystemException("Could not explicitly release JDBC savepoint", ex);
}