From 2c8643b0e98070bbf51bc38d32258526634ee67d Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 24 Jul 2016 17:37:25 -0400 Subject: Allow Table._reset_exported to silently pass Fixed bug in :class:`.Table` where the internal method ``_reset_exported()`` would corrupt the state of the object. This method is intended for selectable objects and is called by the ORM in some cases; an erroneous mapper configuration would could lead the ORM to call this on on a :class:`.Table` object. Change-Id: I63fa34ee0cdf16358bb125c556390df79758bcbc Fixes: #3755 --- lib/sqlalchemy/sql/schema.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/sqlalchemy/sql') diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py index ee139827a..55d0b74e6 100644 --- a/lib/sqlalchemy/sql/schema.py +++ b/lib/sqlalchemy/sql/schema.py @@ -598,6 +598,9 @@ class Table(DialectKWArgs, SchemaItem, TableClause): def _init_collections(self): pass + def _reset_exported(self): + pass + @property def _autoincrement_column(self): return self.primary_key._autoincrement_column -- cgit v1.2.1