]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
run handle error for commit/rollback fail and cancel transaction
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 15 Jan 2021 22:23:52 +0000 (17:23 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 15 Jan 2021 22:51:34 +0000 (17:51 -0500)
commitf898ef162da65a3755d25ee194885677c880c91f
tree2d45d310f62fd53bb69e73285b2d95f0e2f6c70e
parent5be3c030b321ecc342bf4cd84cbb0838efacd155
run handle error for commit/rollback fail and cancel transaction

Fixed bug in asyncpg dialect where a failure during a "commit" or less
likely a "rollback" should cancel the entire transaction; it's no longer
possible to emit rollback. Previously the connection would continue to
await a rollback that could not succeed as asyncpg would reject it.

Fixes: #5824
Change-Id: I5a4916740c269b410f4d1a78ed25191de344b9d0
doc/build/changelog/unreleased_14/5824.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/asyncpg.py
lib/sqlalchemy/testing/fixtures.py
test/dialect/postgresql/test_async_pg_py3k.py
test/orm/test_deprecations.py