We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d69370 commit 3074116Copy full SHA for 3074116
spring-jdbc/src/main/java/org/springframework/jdbc/datasource/JdbcTransactionObjectSupport.java
@@ -17,6 +17,7 @@
17
package org.springframework.jdbc.datasource;
18
19
import java.sql.SQLException;
20
+import java.sql.SQLFeatureNotSupportedException;
21
import java.sql.Savepoint;
22
23
import org.springframework.lang.Nullable;
@@ -179,6 +180,9 @@ public void releaseSavepoint(Object savepoint) throws TransactionException {
179
180
try {
181
conHolder.getConnection().releaseSavepoint((Savepoint) savepoint);
182
}
183
+ catch (SQLFeatureNotSupportedException ex) {
184
+ // typically on Oracle - ignore
185
+ }
186
catch (Throwable ex) {
187
throw new TransactionSystemException("Could not explicitly release JDBC savepoint", ex);
188
0 commit comments