diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2018-03-14 11:04:43 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2018-03-14 11:38:15 -0400 |
| commit | ef2859bbc8bb8104bf4e429a52efb50a712d834a (patch) | |
| tree | 50adbb257964a7295df87f7aea5eea53b56005bf /test/sql/test_generative.py | |
| parent | f3e18baa00489b2a85293edcdb4c98cb409c8c93 (diff) | |
| download | sqlalchemy-ef2859bbc8bb8104bf4e429a52efb50a712d834a.tar.gz | |
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
Diffstat (limited to 'test/sql/test_generative.py')
| -rw-r--r-- | test/sql/test_generative.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sql/test_generative.py b/test/sql/test_generative.py index 145b2da3c..8b1436879 100644 --- a/test/sql/test_generative.py +++ b/test/sql/test_generative.py @@ -509,7 +509,7 @@ class ClauseTest(fixtures.TestBase, AssertsCompiledSQL): self.assert_compile( cloned, "WITH RECURSIVE foo(n) AS (SELECT values(:values_1) AS n " - "UNION ALL SELECT foo.n + :n_1 AS anon_1 FROM t AS foo " + "UNION ALL SELECT foo.n + :n_1 AS anon_1 FROM foo " "WHERE foo.n < :n_2) SELECT sum(foo.n) AS sum_1 FROM foo" ) |
