summaryrefslogtreecommitdiff
path: root/test/sql
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2022-08-30 10:47:24 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2022-08-30 10:47:24 -0400
commit613642d9639f47ad11ab62a3fa71f6132edbaa0d (patch)
treef0b0a009d10fb2caf99cf19412bc36004c2c62a2 /test/sql
parent2f146b172ad228e40f1e8d5f1d2abc888ae5e669 (diff)
downloadsqlalchemy-613642d9639f47ad11ab62a3fa71f6132edbaa0d.tar.gz
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
Diffstat (limited to 'test/sql')
-rw-r--r--test/sql/test_compare.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/sql/test_compare.py b/test/sql/test_compare.py
index 8d6dc7553..18f26887a 100644
--- a/test/sql/test_compare.py
+++ b/test/sql/test_compare.py
@@ -268,6 +268,8 @@ class CoreFixtures:
),
lambda: (
table("a", column("x"), column("y")),
+ table("a", column("x"), column("y"), schema="q"),
+ table("a", column("x"), column("y"), schema="y"),
table("a", column("x"), column("y"))._annotate({"orm": True}),
table("b", column("x"), column("y"))._annotate({"orm": True}),
),