:version: 0.9.7
:released:
+ .. change::
+ :tags: bug, postgresql, pg8000
+ :tickets: 3134
+ :versions: 1.0.0
+
+ Fixed bug introduced in 0.9.5 by new pg8000 isolation level feature
+ where engine-level isolation level parameter would raise an error
+ on connect.
+
.. change::
:tags: bug, oracle, tests
:tickets: 3128
def set_isolation_level(self, connection, level):
level = level.replace('_', ' ')
+ # adjust for ConnectionFairy possibly being present
+ if hasattr(connection, 'connection'):
+ connection = connection.connection
+
if level == 'AUTOCOMMIT':
- connection.connection.autocommit = True
+ connection.autocommit = True
elif level in self._isolation_lookup:
- connection.connection.autocommit = False
+ connection.autocommit = False
cursor = connection.cursor()
cursor.execute(
"SET SESSION CHARACTERISTICS AS TRANSACTION "
'need separate XA implementation'),
exclude('mysql', '<', (5, 0, 3),
'two-phase xact not supported by database'),
+ no_support("postgresql+pg8000", "not supported and/or hangs")
])
@property