]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
check that two CTEs aren't just annotated forms of the same thing
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 20 Feb 2025 17:50:25 +0000 (12:50 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 20 Feb 2025 18:33:54 +0000 (13:33 -0500)
commitb2724f74213a274d24ed23096575cfce0dfb5b8e
treed260dc1f1740fab5284f468c40244c627edb4ffd
parent659e11013c4e1e0e14564cff094f503b279db2d1
check that two CTEs aren't just annotated forms of the same thing

Fixed issue where using :func:`_orm.aliased` around a :class:`.CTE`
construct could cause inappropriate "duplicate CTE" errors in cases where
that aliased construct appeared multiple times in a single statement.

Fixes: #12364
Change-Id: I9625cd83e9baf5312cdc644b38951353708d3b86
(cherry picked from commit 42ddb1fd5f1e29682bcd6ccc7b835999aafec12e)
doc/build/changelog/unreleased_20/12364.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
test/sql/test_cte.py