Skip to content

Commit

Permalink
Ignore SQLFeatureNotSupportedException on releaseSavepoint
Browse files Browse the repository at this point in the history
Closes gh-33987
  • Loading branch information
jhoeller committed Dec 4, 2024
1 parent 8d69370 commit 3074116
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -179,6 +180,9 @@ public void releaseSavepoint(Object savepoint) throws TransactionException {
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);
}
Expand Down

0 comments on commit 3074116

Please sign in to comment.