]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Check existing CTE for an alias name when rendering FROM clause
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 1 Mar 2018 15:45:39 +0000 (10:45 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 2 Mar 2018 15:48:02 +0000 (10:48 -0500)
commit3cfa0747dd210fdaea56d2af684c6650288299e0
treea9a17bebdf346cdb81b451d327d17f846c034c87
parent25588001d0297fe0b2a6d36e09205547ca5816bc
Check existing CTE for an alias name when rendering FROM clause

Fixed bug in CTE rendering where a :class:`.CTE` that was also turned into
an :class:`.Alias` would not render its "ctename AS aliasname" clause
appropriately if there were more than one reference to the CTE in a FROM
clause.

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