]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
fully copy_internals for AnnotatedFromClause for straight cloned traverse
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 15 Oct 2025 18:47:38 +0000 (14:47 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 15 Oct 2025 19:21:15 +0000 (15:21 -0400)
commit64a6278ffe2658b0dab7d11ffeac77ea8a09fd8b
tree31b872dc4e6dfef6da3810ff16024f68f060fa85
parent4608229fbc5ca72134331adde351411b0ec21339
fully copy_internals for AnnotatedFromClause for straight cloned traverse

Fixed issue where using :meth:`_sql.Select.params` to replace bound
parameters in a query could fail for some cases where the parameters
were embedded in subqueries or CTEs when ORM classes were involved,
due to issues with internal query traversal for these cases.

Fixes: #12915
Change-Id: Ib63bca786a541682f6b2144fd5dd43350411ae9d
(cherry picked from commit 03116b8cc90986a2e597d5423c490babf49c9913)
doc/build/changelog/unreleased_20/12915.rst [new file with mode: 0644]
lib/sqlalchemy/sql/annotation.py
lib/sqlalchemy/sql/selectable.py
test/orm/test_core_compilation.py
test/sql/test_selectable.py