mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
commit transaction only if active (#1156)
This commit is contained in:
committed by
Rob Bygrave
parent
47b0a917a2
commit
64bf6d6a35
@@ -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