]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
subqueryload invokes compile() on _OverrideBinds - do robust replace of bp
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 19 Mar 2024 17:35:35 +0000 (13:35 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 22 Mar 2024 13:20:41 +0000 (09:20 -0400)
commitb6f63a57ed878c1e157ecf86cb35d8b15cd7ea3b
tree9d04ebb0d77ae935ec8dbf5137f42dd6714aabb2
parent697dcc94e412e013aba298e17613ee097f423e04
subqueryload invokes compile() on _OverrideBinds - do robust replace of bp

Fixed regression from version 2.0.28 caused by the fix for :ticket:`11085`
where the newer method of adjusting post-cache bound parameter values would
interefere with the implementation for the :func:`_orm.subqueryload` loader
option, which has some more legacy patterns in use internally, when
the additional loader criteria feature were used with this loader option.

Fixes: #11173
Change-Id: I88982fbcc809d516eb7c46a00fb807aab9c3a98e
doc/build/changelog/unreleased_20/11173.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
test/orm/test_relationship_criteria.py
test/orm/test_subquery_relations.py