]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
fix(AsyncResult): Fix scalar method error due to missing attribute
authorallenyuchen <allenyuchen@hotmail.com>
Wed, 12 Feb 2025 17:35:58 +0000 (12:35 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 12 Feb 2025 19:43:44 +0000 (14:43 -0500)
commited8d20d2d701a7ab661ff5d541e406ef327ecf74
treed252c2e9f34734c36d38354bf438d158499808ca
parent907f3f276f2a7b5f091455d6440949c30289e249
fix(AsyncResult): Fix scalar method error due to missing attribute

Fixed bug where :meth:`_asyncio.AsyncResult.scalar`,
:meth:`_asyncio.AsyncResult.scalar_one_or_none`, and
:meth:`_asyncio.AsyncResult.scalar_one` would raise an ``AttributeError``
due to a missing internal attribute.  Pull request courtesy Allen Ho.

Fixes: #12338
Closes: #12339
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/12339
Pull-request-sha: 63ba43365e9624a75e3f206e6b0f4569e3940da6

Change-Id: I44a949e4a942a080338037cd570d4b1dc0d7550d
(cherry picked from commit ca092e73a254a3914fd93ca98340ba7762d4cee9)
doc/build/changelog/unreleased_20/12338.rst [new file with mode: 0644]
lib/sqlalchemy/ext/asyncio/result.py
test/ext/asyncio/test_engine_py3k.py