We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a191135 commit b07d57fCopy full SHA for b07d57f
src/main/java/org/apache/ibatis/executor/BaseExecutor.java
@@ -159,10 +159,13 @@ public void commit(boolean required) throws SQLException {
159
160
public void rollback(boolean required) throws SQLException {
161
if (!closed) {
162
- clearLocalCache();
163
- flushStatements();
164
- if (required) {
165
- transaction.rollback();
+ try {
+ clearLocalCache();
+ flushStatements();
+ } finally {
166
+ if (required) {
167
+ transaction.rollback();
168
+ }
169
}
170
171
0 commit comments