summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/schema.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2020-02-24 10:44:14 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2020-02-24 10:47:05 -0500
commit996654df341a30b539434bb4fd1e0d53f46641a0 (patch)
treee3b0c59b3f4752df03ecd47b039997e98c4627d0 /lib/sqlalchemy/sql/schema.py
parentca16c53651f819e9587ed29d7d1d7d937e7f25ce (diff)
downloadsqlalchemy-996654df341a30b539434bb4fd1e0d53f46641a0.tar.gz
Ensure schema-level table includes annotations in caching
In 29330ec159 we ensured that annotations are part of cache keys. However we failed to do so for the schema-level Table which will definitely need to distinguish between ORM and non-ORM annotated tables when caching, so ensure this is part of the cache key. Change-Id: I8d996873f2d7fa63230ef837db7e69a0101973b2
Diffstat (limited to 'lib/sqlalchemy/sql/schema.py')
-rw-r--r--lib/sqlalchemy/sql/schema.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py
index 79a700ad8..7cece42d0 100644
--- a/lib/sqlalchemy/sql/schema.py
+++ b/lib/sqlalchemy/sql/schema.py
@@ -431,7 +431,7 @@ class Table(DialectKWArgs, SchemaItem, TableClause):
]
def _gen_cache_key(self, anon_map, bindparams):
- return (self,)
+ return (self,) + self._annotations_cache_key
@util.deprecated_params(
useexisting=(