]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
set within_columns_clause=False for all sub-elements of select()
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 9 Nov 2021 20:02:44 +0000 (15:02 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 9 Nov 2021 20:25:38 +0000 (15:25 -0500)
commit89661c1a218b7117c1835698dbb81836e72015ae
tree1101261abdcbae5795f85e4f2a115b7fec9f4479
parent8b1d59a95479802b5d568999e751f637ac310879
set within_columns_clause=False for all sub-elements of select()

Fixed issue where using the feature of using a string label for ordering or
grouping described at :ref:`tutorial_order_by_label` would fail to function
correctly if used on a :class:`.CTE` construct, when the CTE were embedded
inside of an enclosing :class:`_sql.Select` statement that itself was set
up as a scalar subquery.

Fixes: #7269
Change-Id: Ied6048a1c9a622374a418230c8cfedafa8d3f87e
doc/build/changelog/unreleased_14/7269.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
test/sql/test_cte.py