]> 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:24 +0000 (10:47 -0400)
commit613642d9639f47ad11ab62a3fa71f6132edbaa0d
treef0b0a009d10fb2caf99cf19412bc36004c2c62a2
parent2f146b172ad228e40f1e8d5f1d2abc888ae5e669
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
doc/build/changelog/unreleased_14/8441.rst [new file with mode: 0644]
lib/sqlalchemy/sql/selectable.py
test/sql/test_compare.py