]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- [bug] All of UniqueConstraint, ForeignKeyConstraint,
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 Apr 2012 20:08:35 +0000 (16:08 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 Apr 2012 20:08:35 +0000 (16:08 -0400)
commitf69ccd193b5f1bfe4f2f50e93fe912ceac1af66e
treefa618540df1d0611855e971720e98604511b9ffe
parentae90ba28e85835c278c64d5894ee1a983d11e400
- [bug] All of UniqueConstraint, ForeignKeyConstraint,
CheckConstraint, and PrimaryKeyConstraint will
attach themselves to their parent table automatically
when they refer to a Table-bound Column object directly
(i.e. not just string column name), and refer to
one and only one Table.   Prior to 0.8 this behavior
occurred for UniqueConstraint and PrimaryKeyConstraint,
but not ForeignKeyConstraint or CheckConstraint.
[ticket:2410]
CHANGES
lib/sqlalchemy/schema.py
test/sql/test_constraints.py