]> 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:44 +0000 (13:33 -0500)
commit42ddb1fd5f1e29682bcd6ccc7b835999aafec12e
treee5db1dde77d5979908b66686c6ddea2ee1aea632
parent92698713ed3e04c80e7aab1b0bc6f4b1cdd70ccb
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
doc/build/changelog/unreleased_20/12364.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
test/sql/test_cte.py