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 16:21:26 -0400 |
| commit | d62ebdefbb49d0f2fb6dce3f957a2254d894bdb7 (patch) | |
| tree | ae2b4d4277ec18f1b3eae4e5e22c2795a22db82c /lib/sqlalchemy/sql/compiler.py | |
| parent | dd9be7039496a9ad7f8a8e812644110383e46ec2 (diff) | |
| download | sqlalchemy-d62ebdefbb49d0f2fb6dce3f957a2254d894bdb7.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
(cherry picked from commit 8fe3cd69c5f2d8f73e75fb19ae929273282fba57)
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
0 files changed, 0 insertions, 0 deletions
