]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
include TableClause.schema in cache key
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 30 Aug 2022 14:47:24 +0000 (10:47 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 30 Aug 2022 14:47:59 +0000 (10:47 -0400)
commit12547f963363eefbc9e22bc9b12243971551d89e
tree2abfcd467f51c55960d10cc927f4f155afd1babc
parent5972a06ea18434d620685eb024be11acef1ce73d
include TableClause.schema in cache key

Fixed issue where use of the :func:`_sql.table` construct, passing a string
for the :paramref:`_sql.table.schema` parameter, would fail to take the
"schema" string into account when producing a cache key, thus leading to
caching collisions if multiple, same-named :func:`_sql.table` constructs
with different schemas were used.

Fixes: #8441
Change-Id: Ic4b55b3e8ec53b4c88ba112691bdf60ea1d4c448
(cherry picked from commit 613642d9639f47ad11ab62a3fa71f6132edbaa0d)
doc/build/changelog/unreleased_14/8441.rst [new file with mode: 0644]
lib/sqlalchemy/sql/selectable.py
test/sql/test_compare.py