Skip to content

Commit d9233e6

Browse files
committed
Added a flushStatments() call in the rollback() to fix issue http://code.google.com/p/mybatis/issues/detail?id=122
1 parent a52d1e1 commit d9233e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/apache/ibatis/executor/BaseExecutor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ public void commit(boolean required) throws SQLException {
160160
public void rollback(boolean required) throws SQLException {
161161
if (!closed) {
162162
clearLocalCache();
163+
flushStatements();
163164
if (required) {
164165
transaction.rollback();
165166
}

0 commit comments

Comments
 (0)