]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
add CTE cache elements for CompoundSelect, more verify tests
authorFederico Caselli <cfederico87@gmail.com>
Fri, 14 Jun 2024 22:06:46 +0000 (00:06 +0200)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 31 Jul 2024 15:10:41 +0000 (11:10 -0400)
commit79e3e7b50361bb4d88452e0139c2431a4e031a9a
treef5af5ad5ca956848ba04914b4e23232c1b0b43ac
parentdd3ca86c14f10f8e132e7651938e8b77ae3f05cb
add CTE cache elements for CompoundSelect, more verify tests

Follow up of :ticket:`11471` to fix caching issue where using the
:meth:`.CompoundSelectState.add_cte` method of the
:class:`.CompoundSelectState` construct would not set a correct cache key
which distinguished between different CTE expressions. Also added tests
that would detect issues similar to the one fixed in :ticket:`11544`.

Fixes: #11471
Change-Id: Iae6a91077c987d83cd70ea826daff42855491330
(cherry picked from commit 881be0a21633b3fee101cb34cc611904b8cba618)
doc/build/changelog/unreleased_20/11471.rst [new file with mode: 0644]
lib/sqlalchemy/sql/schema.py
lib/sqlalchemy/sql/selectable.py
test/sql/test_compare.py