]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
skip FROM disambiguation for immediate alias of table
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 19 Mar 2025 22:30:21 +0000 (18:30 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 19 Mar 2025 22:31:20 +0000 (18:31 -0400)
commita20334aa7d556003ae936015c44df5b090240d21
tree2ae7f32d53c839959609329342eb85f7c86d6be0
parentee4721c542601632f50539bc4daed549a4029f37
skip FROM disambiguation for immediate alias of table

Fixed regression caused by :ticket:`7471` leading to a SQL compilation
issue where name disambiguation for two same-named FROM clauses with table
aliasing in use at the same time would produce invalid SQL in the FROM
clause with two "AS" clauses for the aliased table, due to double aliasing.

Fixes: #12451
Change-Id: I981823f8f2cdf3992d65ace93a21fc20d1d74cda
(cherry picked from commit 9ea3be0681dc09338e53b63cea4803de80ebcdc7)
doc/build/changelog/unreleased_20/12451.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
test/sql/test_compiler.py