summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/schema.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2021-07-03 19:48:55 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2021-07-13 10:25:52 -0400
commita0953bb7095dde805de8c13699b122767ed001b9 (patch)
tree767868254068073538b2049a53cb175ca7da7a52 /lib/sqlalchemy/sql/schema.py
parent673ca806b323f47ef7064dd64ffc98240818b930 (diff)
downloadsqlalchemy-a0953bb7095dde805de8c13699b122767ed001b9.tar.gz
Adjust CTE recrusive col list to accommodate dupe col names
Fixed issue in CTE constructs where a recursive CTE that referred to a SELECT that has duplicate column names, which are typically deduplicated using labeling logic in 1.4, would fail to refer to the deduplicated label name correctly within the WITH clause. As part of this change we are also attempting to remove the behavior of SelectStatementGrouping forcing off the "asfrom" contextual flag, which will have the result of additional labeling being applied to some UNION and similar statements when they are interpreted as subqueries. To maintain compatibility with "grouping", the Grouping/SelectStatementGrouping are now broken out into two separate compiler cases, as the "asfrom" logic appears to be tailored towards table valued SELECTS as column expressions. Fixes: #6710 Change-Id: I8af07a5c670dbe5736cd9f16084ef82f5e4c8642
Diffstat (limited to 'lib/sqlalchemy/sql/schema.py')
0 files changed, 0 insertions, 0 deletions