summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/util.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-07-10 11:00:49 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-07-10 11:00:49 -0400
commit0e41673ed4e8551b892c058ffc6a607cf7aba71c (patch)
tree6914091d7cbb58331d147242e6efa83bd1345424 /lib/sqlalchemy/sql/util.py
parentb297b40fca923a03e3c34094e5298d6524944c39 (diff)
downloadsqlalchemy-0e41673ed4e8551b892c058ffc6a607cf7aba71c.tar.gz
- [bug] Fixed more un-intuitivenesses in CTEs
which prevented referring to a CTE in a union of itself without it being aliased. CTEs now render uniquely on name, rendering the outermost CTE of a given name only - all other references are rendered just as the name. This even includes other CTE/SELECTs that refer to different versions of the same CTE object, such as a SELECT or a UNION ALL of that SELECT. We are somewhat loosening the usual link between object identity and lexical identity in this case. A true name conflict between two unrelated CTEs now raises an error.
Diffstat (limited to 'lib/sqlalchemy/sql/util.py')
0 files changed, 0 insertions, 0 deletions