]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The :class:`.ForeignKey` class more aggressively checks the given
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 12 Dec 2013 00:48:27 +0000 (19:48 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 12 Dec 2013 00:48:27 +0000 (19:48 -0500)
commit84af7e6c22100ef26c5a27185b1d270f5afb3370
tree18aa3efba3349c572c381aaf7ed1a74753e11e2d
parent9087157749a0527d6af37e58166793fc7e2f0bf7
- The :class:`.ForeignKey` class more aggressively checks the given
column argument.   If not a string, it checks that the object is
at least a :class:`.ColumnClause`, or an object that resolves to one,
and that the ``.table`` attribute, if present, refers to a
:class:`.TableClause` or subclass, and not something like an
:class:`.Alias`.  Otherwise, a :class:`.ArgumentError` is raised.
[ticket:2883]
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/sql/schema.py
test/sql/test_metadata.py