]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
The resolution of :class:`.ForeignKey` objects to their
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 23 Jun 2013 18:03:47 +0000 (14:03 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 23 Jun 2013 19:58:07 +0000 (15:58 -0400)
commite288aff8eae6d08b040ad9026449ff4578104d1b
tree0b8e7735999f0ca0ad29e1f043d972af9371d59e
parent977678a7734d082be9851320bcc737d32ccd88bc
The resolution of :class:`.ForeignKey` objects to their
target :class:`.Column` has been reworked to be as
immediate as possible, based on the moment that the
target :class:`.Column` is associated with the same
:class:`.MetaData` as this :class:`.ForeignKey`, rather
than waiting for the first time a join is constructed,
or similar. This along with other improvements allows
earlier detection of some foreign key configuration
issues.  Also included here is a rework of the
type-propagation system, so that
it should be reliable now to set the type as ``None``
on any :class:`.Column` that refers to another via
:class:`.ForeignKey` - the type will be copied from the
target column as soon as that other column is associated,
and now works for composite foreign keys as well.
[ticket:1765]
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/schema.py
lib/sqlalchemy/sql/compiler.py
test/orm/inheritance/test_basic.py
test/sql/test_metadata.py
test/sql/test_selectable.py