]> 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:09:43 +0000 (11:09 -0400)
commit881be0a21633b3fee101cb34cc611904b8cba618
treed72fcd546a61a71af9f156f96ac60a89c7959879
parent1442a71916381ff8f6bbedb33d9e61938eb84778
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
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