'Commit any pending transaction to the database.
Note that if the database supports an auto-commit feature,
this must be initially off. An interface method may be provided to turn it back on.
Database modules that do not support transactions should implement this method with void functionality.'

def commit(self):

    self.messages = []
    try:
        if self.supportsTransactions:
            self.adoConn.CommitTrans()
            if (not (self.adoConn.Attributes & adXactCommitRetaining)):
                self.adoConn.BeginTrans()
    except Exception as e:
        self._raiseConnectionError(Error, e)
