]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Track if we're rendering within the CTE recursively
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 14 Mar 2018 15:04:43 +0000 (11:04 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 14 Mar 2018 15:38:51 +0000 (11:38 -0400)
commite05f91efb8034243f91851c07abe03d46fbdd474
tree4c4b7ed6cf4555ae6525c2aebfc1d023ef5d2c7d
parentaeb825fef70e40e02ce4de01e4d1053aafc0ccba
Track if we're rendering within the CTE recursively

Fixed a regression that occurred from the previous fix to :ticket:`4204` in
version 1.2.5, where a CTE that refers to itself after the
:meth:`.CTE.alias` method has been called would not refer to iself
correctly.

Change-Id: Iaa63d65ad2b90c8693f9953fbb32dbb10c73a037
Fixes: #4204
(cherry picked from commit ef2859bbc8bb8104bf4e429a52efb50a712d834a)
doc/build/changelog/unreleased_12/4204.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
test/sql/test_cte.py
test/sql/test_generative.py