]> 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:21 +0000 (10:22 -0500)
commit8844cb0b4148ff52c0377edf01d6e88f3bbe1ab0
tree5ed4df77e14019fae07ced2b5c90d6e38d5f2f90
parenta431bf0c6b70202b174474e8061ba3dd5c1be5cc
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
doc/build/changelog/unreleased_20/11010.rst [new file with mode: 0644]
lib/sqlalchemy/orm/relationships.py
test/orm/test_relationship_criteria.py