]> 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:27:07 +0000 (15:27 -0500)
commitd8c12d9f180eeed9d2c5174eeb0c74169a04262f
tree6a602b177c8f1af05f835b53a1fa7e9b1609b221
parent9ee47d90d804dc815685d42913ad170e04c38659
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
(cherry picked from commit 89661c1a218b7117c1835698dbb81836e72015ae)
doc/build/changelog/unreleased_14/7269.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
test/sql/test_cte.py