]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Allow Table._reset_exported to silently pass
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 24 Jul 2016 21:37:25 +0000 (17:37 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 25 Jul 2016 03:17:11 +0000 (23:17 -0400)
commit2c8643b0e98070bbf51bc38d32258526634ee67d
treeb7aee41d45e0f6964060abd2a219d9165743555f
parent96c4208bf83607120d2f716070ed22ee10312dd0
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
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/sql/schema.py
test/sql/test_metadata.py