]> 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:56:46 +0000 (00:56 -0400)
commitbc4cf9480ecbad2159d5bd8f1393712971a8bdec
tree03b576a165468b6763f4b9a4a260d77472784e9a
parent4017b2696498a1cb4804a3be32b522b542d5af90
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
(cherry picked from commit 8967099c3ba8b04fa20536bc0a026f6adc8e096f)
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/sql/selectable.py
lib/sqlalchemy/testing/__init__.py
lib/sqlalchemy/testing/assertions.py
test/ext/declarative/test_inheritance.py
test/sql/test_selectable.py