]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
refine _include_fn to not include sibling mappers
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 23 Jun 2022 15:15:19 +0000 (11:15 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 23 Jun 2022 15:18:36 +0000 (11:18 -0400)
commitc4ee403e139d523ac554fcbb24a924a26f5261bd
tree40b8b1b5b4774fc6c18cfb02e7fba32ef7783212
parent9ef3d97922c303514ab6f14ea00d56354d3b5548
refine _include_fn to not include sibling mappers

Fixed regression caused by :ticket:`8064` where a particular check for
column correspondence was made too liberal, resulting in incorrect
rendering for some ORM subqueries such as those using
:meth:`.PropComparator.has` or :meth:`.PropComparator.any` in conjunction
with joined-inheritance queries that also use legacy aliasing features.

Fixes: #8162
Change-Id: Ib1fff33aa219aadf178348dd571bec1e691e606d
(cherry picked from commit 4553f24980c0a23685afdb9ef6958b79f4b22e70)
doc/build/changelog/unreleased_14/8162.rst [new file with mode: 0644]
lib/sqlalchemy/orm/util.py
test/orm/inheritance/_poly_fixtures.py
test/orm/test_deprecations.py