]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Clone _cte_alias instead of assigning "self"
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 6 Mar 2018 02:36:18 +0000 (21:36 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 6 Mar 2018 02:37:41 +0000 (21:37 -0500)
commit10c3d0271f64602c58aabade699d0ede6e2fb8d9
tree6be04a099d439ef5eff5708260c819d15fc2f11a
parentdc117f8c66229a3ae0fd9272aa04bd455a669c67
Clone _cte_alias instead of assigning "self"

Fixed bug in :class:.`CTE` construct along the same lines as that of
:ticket:`4204` where a :class:`.CTE` that was aliased would not copy itself
correctly during a "clone" operation as is frequent within the ORM as well
as when using the :meth:`.ClauseElement.params` method.

Change-Id: Id68d72dd244dedfc7bd6116c9a5123c51a55ea20
Fixes: #4210
(cherry picked from commit 9a13f007e2342def94cc7362eeadd5ec8c988340)
doc/build/changelog/unreleased_12/4210.rst [new file with mode: 0644]
lib/sqlalchemy/sql/selectable.py
test/sql/test_cte.py
test/sql/test_generative.py