diff options
author | Gord Thompson <gord@gordthompson.com> | 2022-07-22 08:31:24 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-08-02 13:59:16 -0400 |
commit | 5741068012ff60ccd0b2c2b3451eb923954cc195 (patch) | |
tree | 699fe390a673d78c0839cdbcfc1fd78f2546f7b1 /test/dialect/postgresql/test_dialect.py | |
parent | 3ff18812d8d80b2016ceeea98c808a76cae85e48 (diff) | |
download | sqlalchemy-5741068012ff60ccd0b2c2b3451eb923954cc195.tar.gz |
Fix 'No transaction found' error on Synapse.
Fixed issue where the SQL Server dialect's query for the current isolation
level would fail on Azure Synapse Analytics, due to the way in which this
database handles transaction rollbacks after an error has occurred. The
initial query has been modified to no longer rely upon catching an error
when attempting to detect the appropriate system view. Additionally, to
better support this database's very specific "rollback" behavior,
implemented new parameter ``ignore_no_transaction_on_rollback`` indicating
that a rollback should ignore Azure Synapse error 'No corresponding
transaction found. (111214)', which is raised if no transaction is present
in conflict with the Python DBAPI.
Fixes: #8231
Closes: #8233
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/8233
Pull-request-sha: c48bd44a9f53d00e5e94f1b8bf996711b6419562
Change-Id: I6407a03148f45cc9eba8fe1d31d4f59ebf9c7ef7
Diffstat (limited to 'test/dialect/postgresql/test_dialect.py')
0 files changed, 0 insertions, 0 deletions