]> 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:41:12 +0000 (18:41 -0400)
commit9c52d9a507a738ae68f0a6eae09d87959995b981
tree4acd172acd08b277036c0bc3bdd8a14e9f2a4eb1
parentc90396fbe7424c481f8f4ee18b6cedd1fa09c711
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
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