File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
spring-jdbc/src/main/java/org/springframework/jdbc/datasource Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2024 the original author or authors.
2
+ * Copyright 2002-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -183,6 +183,13 @@ public void releaseSavepoint(Object savepoint) throws TransactionException {
183
183
catch (SQLFeatureNotSupportedException ex ) {
184
184
// typically on Oracle - ignore
185
185
}
186
+ catch (SQLException ex ) {
187
+ // ignore Microsoft SQLServerException: This operation is not supported.
188
+ String msg = ex .getMessage ();
189
+ if (msg == null || !msg .contains ("not supported" )) {
190
+ throw new TransactionSystemException ("Could not explicitly release JDBC savepoint" , ex );
191
+ }
192
+ }
186
193
catch (Throwable ex ) {
187
194
throw new TransactionSystemException ("Could not explicitly release JDBC savepoint" , ex );
188
195
}
You can’t perform that action at this time.
0 commit comments