Project

General

Profile

« Previous | Next » 

Revision 3136

sql.py: DbConn: _savepoint starts at 1 because the driver is not in autocommit mode, so a transaction is already open

View differences:

sql.py
193 193
        if not self.connected(): return
194 194
        
195 195
        # Record that the automatic transaction is now closed
196
        if not self.autocommit: self._savepoint -= 1
196
        self._savepoint -= 1
197 197
        
198 198
        self.db.close()
199 199
        self._reset()
......
231 231
                    log_level=3)
232 232
            
233 233
            # Record that a transaction is already open
234
            if not self.autocommit: self._savepoint += 1
234
            self._savepoint += 1
235 235
        
236 236
        return self.__db
237 237
    

Also available in: Unified diff