Project

General

Profile

« Previous | Next » 

Revision 2921

sql.py: DbConn: Don't always autocommit in debug_temp mode, because this could cause autocommit mode to be turned on when the user does not expect it

View differences:

lib/sql.py
154 154
        @param debug_temp Whether temporary objects should instead be permanent.
155 155
            This assists in debugging the internal objects used by the program.
156 156
        '''
157
        if debug_temp: autocommit = True
158
        
159 157
        self.db_config = db_config
160 158
        self.autocommit = autocommit
161 159
        self.caching = caching

Also available in: Unified diff