mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-22 15:10:02 +00:00
FIX: Flush transaction if it is modified in callback
This commit is contained in:
1 parent
7152cf656b
commit
a82ba6d4aa
2 files changed
+24
No files matched your search
@@ -885,6 +885,9 @@ class JdbcTransaction implements SpiTransaction, TxnProfileEventCodes {
|
||||
public final void preCommit() {
|
||||
internalBatchFlush();
|
||||
firePreCommit();
|
||||
// we must flush the batch queue again, because the callback can
|
||||
// modify current transaction
|
||||
internalBatchFlush();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user