]> 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>
Sun, 24 Jul 2016 21:41:14 +0000 (17:41 -0400)
commita736be3feb4cf7edf5fa3c2d1b65a444ffaf5044
tree57ce425e7ca7be6e7742e2b9567016a2d27fce12
parentb3a424dacc91e0fd2952b786188e33f47b1ffde2
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
(cherry picked from commit 149fb5f55a5df3f31f6575919a5a5a2e5ba9cb0c)
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/sql/schema.py
test/sql/test_metadata.py