]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
improve error raise for dialect/pool events w/ async engine
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 3 Mar 2022 02:43:53 +0000 (21:43 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 3 Mar 2022 02:46:23 +0000 (21:46 -0500)
commit61072ebef08468460484e7c065db0f58626a1448
tree67fbbab7cdd78bbf289a0c014e95f8b32e284fc2
parentd96fc604f9172daef28ef5f5e5c1074de966d527
improve error raise for dialect/pool events w/ async engine

Fixed issues where a descriptive error message was not raised for some
classes of event listening with an async engine, which should instead be a
sync engine instance.

Change-Id: I00b9f4fe9373ef5fd5464fac10651cc4024f648e
(cherry picked from commit e893ce1196a1fb02ad53576fd75ffd40e5d9dd89)
doc/build/changelog/unreleased_14/async_no_event.rst [new file with mode: 0644]
lib/sqlalchemy/engine/events.py
lib/sqlalchemy/ext/asyncio/events.py
lib/sqlalchemy/pool/events.py
test/base/test_events.py
test/ext/asyncio/test_engine_py3k.py