]> 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:30:21 +0000 (18:30 -0400)
commit9ea3be0681dc09338e53b63cea4803de80ebcdc7
tree8b3b9e69624bdf635861458ac06c0290bf165f25
parent780d37777ea26bf88fa36388b516664fa0c11955
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
doc/build/changelog/unreleased_20/12451.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
test/sql/test_compiler.py