]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
skip in eager row processors for enable_eagerloads=False
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 1 Aug 2024 19:58:57 +0000 (15:58 -0400)
committerMichael Bayer <mike_mp@zzzcomputing.com>
Thu, 1 Aug 2024 23:16:53 +0000 (23:16 +0000)
commit6a457923b80497cf3deaa5a47a9a834498f4b055
treee0b46c5d74d05599965024ad9b297254cec10030
parent34a2164c7c4d57073c20cae864bb51b90ff2d3a5
skip in eager row processors for enable_eagerloads=False

Fixed issue where using the :meth:`_orm.Query.enable_eagerloads` and
:meth:`_orm.Query.yield_per` methods at the same time, in order to disable
eager loading that's configured on the mapper directly, would be silently
ignored, leading to errors or unexpected eager population of attributes.

Fixes: #10834
Change-Id: I6a20bdedf23f6dd4e98ffb49ad784117fe4afdd3
(cherry picked from commit 0a8bf50422a4c5ce1945aee6d6d37d9467ebf1c1)
doc/build/changelog/unreleased_20/10834.rst [new file with mode: 0644]
lib/sqlalchemy/orm/strategies.py
test/orm/test_query.py