Files
sqlalchemy/test
Mike Bayer 5491f251b4 mark has()/any() as ORM; adjust criteria in WHERE without explicit FROM
A significant change to the ORM mechanics involved with both
:func:`.orm.with_loader_criteria` as well as single table inheritance, to
more aggressively locate WHERE criteria which should be augmented by either
the custom criteria or single-table inheritance criteria; SELECT statements
that do not include the entity within the columns clause or as an explicit
FROM, but still reference the entity within the WHERE clause, are now
covered, in particular this will allow subqueries using ``EXISTS (SELECT
1)`` such as those rendered by :meth:`.RelationshipProperty.Comparator.any`
and :meth:`.RelationshipProperty.Comparator.has`.

Fixes: #13070
Change-Id: I9afb48e1c95b9e61f4e1b6be8e4a634ed5b1df43
2026-01-09 15:14:35 -05:00
..
2025-12-18 21:18:42 +01:00
2025-12-19 21:24:23 +01:00
2026-01-01 12:54:47 -05:00
2025-12-19 21:24:23 +01:00
2025-12-19 21:24:23 +01:00
2025-11-30 14:38:13 -05:00