]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
ensure secondary cols not excluded from adaption
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 14 Feb 2024 14:29:19 +0000 (09:29 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 14 Feb 2024 15:22:32 +0000 (10:22 -0500)
commit3900210ddc0beeee9b491b42dc6ec1f6dc6c555c
tree75a809309e21bb163163ea920f18ef9d1c5a446d
parentdab2509c9ab67779316e44d96500cdbe5694fcb4
ensure secondary cols not excluded from adaption

Fixed regression caused by :ticket:`9779` where using the "secondary" table
in a relationship ``and_()`` expression would fail to be aliased to match
how the "secondary" table normally renders within a
:meth:`_sql.Select.join` expression, leading to an invalid query.

Fixes: #11010
Change-Id: I535ce8b14f6a779c26b6b50b796ce64e57d7ee3d
(cherry picked from commit 8844cb0b4148ff52c0377edf01d6e88f3bbe1ab0)
doc/build/changelog/unreleased_20/11010.rst [new file with mode: 0644]
lib/sqlalchemy/orm/relationships.py
test/orm/test_relationship_criteria.py