Ignore SQLFeatureNotSupportedException on releaseSavepoint
Closes gh-33987
This commit is contained in:
parent
8d69370b95
commit
307411631d
|
|
@ -17,6 +17,7 @@
|
||||||
package org.springframework.jdbc.datasource;
|
package org.springframework.jdbc.datasource;
|
||||||
|
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
import java.sql.SQLFeatureNotSupportedException;
|
||||||
import java.sql.Savepoint;
|
import java.sql.Savepoint;
|
||||||
|
|
||||||
import org.springframework.lang.Nullable;
|
import org.springframework.lang.Nullable;
|
||||||
|
|
@ -179,6 +180,9 @@ public abstract class JdbcTransactionObjectSupport implements SavepointManager,
|
||||||
try {
|
try {
|
||||||
conHolder.getConnection().releaseSavepoint((Savepoint) savepoint);
|
conHolder.getConnection().releaseSavepoint((Savepoint) savepoint);
|
||||||
}
|
}
|
||||||
|
catch (SQLFeatureNotSupportedException ex) {
|
||||||
|
// typically on Oracle - ignore
|
||||||
|
}
|
||||||
catch (Throwable ex) {
|
catch (Throwable ex) {
|
||||||
throw new TransactionSystemException("Could not explicitly release JDBC savepoint", ex);
|
throw new TransactionSystemException("Could not explicitly release JDBC savepoint", ex);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue