]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
apply loader criteria more specifically when refresh is true
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 28 Mar 2022 22:39:19 +0000 (18:39 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 28 Mar 2022 22:42:28 +0000 (18:42 -0400)
commitc8dd7affff3c253256be81b5e912bcdd1359cf1a
treea2ab039accdeaa34b46ec81645963b54156dab38
parent32cac8f9ff223acfaea4f33798ebcb658382d145
apply loader criteria more specifically when refresh is true

Fixed bug in :func:`_orm.with_loader_criteria` function where loader
criteria would not be applied to a joined eager load that were invoked
within the scope of a refresh operation for the parent object.

Fixes: #7862
Change-Id: If1ac86eaa95880b5ec5bdeee292d6e8000aac705
(cherry picked from commit 9c52d9a507a738ae68f0a6eae09d87959995b981)
doc/build/changelog/unreleased_14/7862.rst [new file with mode: 0644]
lib/sqlalchemy/orm/context.py
lib/sqlalchemy/orm/util.py
test/orm/test_relationship_criteria.py