]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
safe annotate QueryableAttribute inside of join() condition
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 10 Aug 2023 22:26:45 +0000 (18:26 -0400)
committermike bayer <mike_mp@zzzcomputing.com>
Fri, 11 Aug 2023 22:23:04 +0000 (22:23 +0000)
commitf09036680c723b16f250f95267800cddaf1a9a42
tree2e8d4e31742a8edf386e143769fcca12651f201a
parent872738e2dee8734f9bfee05dd149fa9385ae795f
safe annotate QueryableAttribute inside of join() condition

Fixed fundamental issue which prevented some forms of ORM "annotations"
from taking place for subqueries which made use of :meth:`_sql.Select.join`
against a relationship target.  These annotations are used whenever a
subquery is used in special situations such as within
:meth:`_orm.PropComparator.and_` and other ORM-specific scenarios.

Fixes: #10223
Change-Id: I40f04265a6caa0fdcbc9f1b121a35561ab4b1fcf
doc/build/changelog/unreleased_14/10223.rst [new file with mode: 0644]
lib/sqlalchemy/orm/relationships.py
lib/sqlalchemy/sql/annotation.py
test/orm/test_rel_fn.py
test/orm/test_relationship_criteria.py