]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Repair foreign_keys population for Join._refresh_for_new_column
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 15 Sep 2016 04:50:17 +0000 (00:50 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 15 Sep 2016 04:54:15 +0000 (00:54 -0400)
commit25804aeae262fa01256dbd2f045ad4a380644f66
tree9016ee540e1b1ca9d4b4c6e20f9d6517e37047df
parent6e1f34ed6230d7fce338ee4fb022678a7e511627
Repair foreign_keys population for Join._refresh_for_new_column

Fixed bug where setting up a single-table inh subclass of a joined-table
subclass which included an extra column would corrupt the foreign keys
collection of the mapped table, thereby interfering with the
initialization of relationships.

Change-Id: I04a0cf98fd456d12d5a5b9e77a46a01246969a63
Fixes: #3797
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/sql/selectable.py
test/ext/declarative/test_inheritance.py
test/sql/test_selectable.py