diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-04-04 00:21:28 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-04-04 00:21:28 +0000 |
| commit | 1dbed0b2b4446408f14a87d94f9c0c6b3356fcf2 (patch) | |
| tree | 2dcd585d8472170cdcfd8bdbd658f60a4728a282 /lib/sqlalchemy/schema.py | |
| parent | 9dd01e52e2e0755bbaf6e08b048e9a48b55879d1 (diff) | |
| download | sqlalchemy-1dbed0b2b4446408f14a87d94f9c0c6b3356fcf2.tar.gz | |
- merged sync_simplify branch
- The methodology behind "primaryjoin"/"secondaryjoin" has
been refactored. Behavior should be slightly more
intelligent, primarily in terms of error messages which
have been pared down to be more readable. In a slight
number of scenarios it can better resolve the correct
foreign key than before.
- moved collections unit test from relationships.py to collection.py
- PropertyLoader now has "synchronize_pairs" and "equated_pairs"
collections which allow easy access to the source/destination
parent/child relation between columns (might change names)
- factored out ClauseSynchronizer (finally)
- added many more tests for priamryjoin/secondaryjoin
error checks
Diffstat (limited to 'lib/sqlalchemy/schema.py')
| -rw-r--r-- | lib/sqlalchemy/schema.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/schema.py b/lib/sqlalchemy/schema.py index 96ec5b8de..a4028c1ef 100644 --- a/lib/sqlalchemy/schema.py +++ b/lib/sqlalchemy/schema.py @@ -553,7 +553,7 @@ class Column(SchemaItem, expression._ColumnClause): def references(self, column): """Return True if this references the given column via a foreign key.""" for fk in self.foreign_keys: - if fk.column is column: + if fk.references(column.table): return True else: return False |
