]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed bug in 0.9's foreign key setup system, such that
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 28 Jan 2015 16:48:20 +0000 (11:48 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 28 Jan 2015 16:56:13 +0000 (11:56 -0500)
commit8a744a4684861a73562e1b2c338f3013a52fda71
tree8789aa19a3ea9114d8c971718481302d9e656246
parent873c2a7f7a8b9fcc952395850bd225a90cf176ae
- Fixed bug in 0.9's foreign key setup system, such that
the logic used to link a :class:`.ForeignKey` to its parent could fail
when the foreign key used "link_to_name=True" in conjunction with
a target :class:`.Table` that would not receive its parent column until
later, such as within a reflection + "useexisting" scenario,
if the target column in fact had a key value different from its name,
as would occur in reflection if column reflect events were used to
alter the .key of reflected :class:`.Column` objects so that the
link_to_name becomes significant.  Also repaired support for column
type via FK transmission in a similar way when target columns had a
different key and were referenced using link_to_name.
fixes #3298

(cherry picked from commit 3712e35c329cc3b5106f026be90e04f65412586d)
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/sql/schema.py
test/sql/test_metadata.py