]> 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:55:26 +0000 (11:55 -0500)
commit3712e35c329cc3b5106f026be90e04f65412586d
tree3adc2f068e10424829ecc4aa720ff4a46231d16b
parent8aaa8dd6bdfb85fa481efa3115b9080d935d344c
- 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
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/sql/schema.py
test/sql/test_metadata.py