]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
implement AsyncSessionTransaction._regenerate_proxy_for_target
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 26 Mar 2025 17:55:46 +0000 (13:55 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 27 Mar 2025 15:11:04 +0000 (11:11 -0400)
commit0202673a34b1b0cbbda6e2cb06012f77df642085
tree9d4ace710f9994edab7abf0c135cf61b335b3f08
parent94c0976ad3ea8b3945b7d4edb1a6ab81af5a4c63
implement AsyncSessionTransaction._regenerate_proxy_for_target

Fixed issue where :meth:`.AsyncSession.get_transaction` and
:meth:`.AsyncSession.get_nested_transaction` would fail with
``NotImplementedError`` if the "proxy transaction" used by
:class:`.AsyncSession` were garbage collected and needed regeneration.

Fixes: #12471
Change-Id: Ia8055524618df706d7958786a500cdd25d9d8eaf
doc/build/changelog/unreleased_20/12471.rst [new file with mode: 0644]
lib/sqlalchemy/ext/asyncio/base.py
lib/sqlalchemy/ext/asyncio/engine.py
lib/sqlalchemy/ext/asyncio/session.py
test/ext/asyncio/test_session_py3k.py