Changeset 2899

Show
Ignore:
Timestamp:
03/10/2007 03:06:44 AM (1 year ago)
Author:
uwe_grauer
Message:

extended dbActivityLog with logging for transactions and dbFirebird.flush()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/uwe/dabo/db/dBackend.py

    r2831 r2899  
    220220    def beginTransaction(self, cursor): 
    221221        """ Begin a SQL transaction. Override in subclasses if needed.""" 
     222        dabo.dbActivityLog.write("SQL: in dBackend.beginTransaction() - pass") 
    222223        pass 
    223224 
     
    227228        if not cursor.AutoCommit: 
    228229            self._connection.commit() 
     230            dabo.dbActivityLog.write("SQL: in dBackend.commitTransaction() - self._connection.commit()") 
    229231 
    230232 
     
    232234        """ Roll back (revert) a SQL transaction.""" 
    233235        self._connection.rollback() 
     236        dabo.dbActivityLog.write("SQL: in dBackend.rollbalTransaction() - self._connection.rollback()") 
    234237 
    235238 
  • branches/uwe/dabo/db/dbFirebird.py

    r2851 r2899  
    193193        to the database written to disk. 
    194194        """ 
     195        import dabo 
    195196        cursor.connection.commit() 
     197        dabo.dbActivityLog.write("SQL: in dbFirebird.flush() - cursor.connection.commit()") 
    196198 
    197199