Revision 2894
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
191 | 191 |
self.__db = module.connect(**db_config) |
192 | 192 |
|
193 | 193 |
# Configure connection |
194 |
if self.serializable and not self.autocommit: self.run_query(
|
|
194 |
if self.serializable: self.run_query( |
|
195 | 195 |
'SET TRANSACTION ISOLATION LEVEL SERIALIZABLE', log_level=4) |
196 | 196 |
if schemas != None: |
197 | 197 |
search_path = [self.esc_name(s) for s in schemas.split(',')] |
Also available in: Unified diff
sql.py: DbConn._db(): Setting serializable isolation level: Always set this (if self.serializable is set), even in autocommit mode, because autocommit mode is implemented by manual commits in the DbConn wrapper object rather than using the underlying connection's autocommit mode (which does not allow setting the isolation level)