]> 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:15 +0000 (11:38 -0400)
commitef2859bbc8bb8104bf4e429a52efb50a712d834a
tree50adbb257964a7295df87f7aea5eea53b56005bf
parentf3e18baa00489b2a85293edcdb4c98cb409c8c93
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
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