]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Ensure loader criteria used for ORM join with expression condition
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 19 Sep 2023 12:58:52 +0000 (08:58 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 27 Feb 2024 13:22:57 +0000 (08:22 -0500)
commit0f3e8d08d6124440bc37f9799adb8caad71e63f1
treeed56d493205c0ce2d531b2394067396b11b83ed0
parent4959dea070d359a95e80929f96c0a5b81702ed13
Ensure loader criteria used for ORM join with expression condition

Fixed bug where ORM :func:`_orm.with_loader_criteria` would not apply
itself to a :meth:`_sql.Select.join` where the ON clause were given as a
plain SQL comparison, rather than as a relationship target or similar.

Fixes: #10365
Change-Id: Ie6d08fb01a3079b7c3ccd3a8241031d46a56e19d
(cherry picked from commit f8086a809bba358790cff032d745814b186ab8cb)
doc/build/changelog/unreleased_14/10365.rst [new file with mode: 0644]
lib/sqlalchemy/orm/util.py
setup.cfg
test/orm/test_relationship_criteria.py