]> 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, 19 Sep 2023 13:27:54 +0000 (09:27 -0400)
commitf8086a809bba358790cff032d745814b186ab8cb
treec3fe95698ec3717ed1ae50bda58516865f7a25e8
parent83fa1d92ef148bf19bab5e716537b13a08c7574e
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
doc/build/changelog/unreleased_20/10365.rst [new file with mode: 0644]
lib/sqlalchemy/orm/util.py
test/orm/test_relationship_criteria.py