Project

General

Profile

« Previous | Next » 

Revision 2234

sql.py: DbConn._db(): Fixed bug where the isolation level was not set to "SERIALIZABLE" in a portable way

View differences:

lib/sql.py
185 185
            self.__db = module.connect(**db_config)
186 186
            
187 187
            # Configure connection
188
            if self.serializable and not self.autocommit:
189
                self.db.set_session(isolation_level='SERIALIZABLE')
188
            if self.serializable and not self.autocommit: run_raw_query(self,
189
                'SET TRANSACTION ISOLATION LEVEL SERIALIZABLE')
190 190
            if schemas != None:
191 191
                schemas_ = ''.join((esc_name(self, s)+', '
192 192
                    for s in schemas.split(',')))

Also available in: Unified diff