]> 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:21:22 +0000 (09:21 -0400)
commit436cb7221ffca29fd7764a022b8f7b35abd272bd
treea194eb719c2aac9483971c2d259114860c3dca96
parent8b1bc05d444351c53daa42e827848fbecfb50e7e
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
(cherry picked from commit b6f63a57ed878c1e157ecf86cb35d8b15cd7ea3b)
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