parent
c7249b5ca9
commit
2d592fa521
@ -224,6 +224,7 @@ class DBAPI(DbGeneric):
|
||||
Lowlevel interface to the backend transaction.
|
||||
Executes a db BEGIN;
|
||||
"""
|
||||
if self.transaction == None:
|
||||
_LOG.debug(" DBAPI %s transaction begin", hex(id(self)))
|
||||
self.dbapi.begin()
|
||||
|
||||
@ -232,6 +233,7 @@ class DBAPI(DbGeneric):
|
||||
Lowlevel interface to the backend transaction.
|
||||
Executes a db END;
|
||||
"""
|
||||
if self.transaction == None:
|
||||
_LOG.debug(" DBAPI %s transaction commit", hex(id(self)))
|
||||
self.dbapi.commit()
|
||||
|
||||
@ -240,6 +242,7 @@ class DBAPI(DbGeneric):
|
||||
Lowlevel interface to the backend transaction.
|
||||
Executes a db ROLLBACK;
|
||||
"""
|
||||
if self.transaction == None:
|
||||
self.dbapi.rollback()
|
||||
|
||||
def transaction_begin(self, transaction):
|
||||
|
Loading…
Reference in New Issue
Block a user