mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-03 08:24:23 +00:00
commit transaction only if active (#1156)
This commit is contained in:
1 parent
47b0a917a2
commit
64bf6d6a35
1 file changed
+1
-1
@@ -288,7 +288,7 @@ public final class OrmQueryRequest<T> extends BeanRequest implements BeanQueryRe
|
||||
*/
|
||||
@Override
|
||||
public void endTransIfRequired() {
|
||||
if (createdTransaction) {
|
||||
if (createdTransaction && transaction.isActive()) {
|
||||
transaction.commit();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user