]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- check for tables in the primaryjoin/secondaryjoin that arent parent of parent/child...
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 18 Mar 2007 21:45:55 +0000 (21:45 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 18 Mar 2007 21:45:55 +0000 (21:45 +0000)
commit8f788f683ba64e7e0c495454883ca18dd2ae5f11
tree196969caed192332b0951825006fb5637415bd51
parent1c56142219188636ff57a1e4dbb8ee0d57e3dc88
- check for tables in the primaryjoin/secondaryjoin that arent parent of parent/child mappers.
dont include those clauses when looking for foreign_keys (which also takes care of remote_side).
if those cols are present in foreign_keys, lazyloader makes binds out of them and tries to
target those columns on the mapper, raising either the "conflicting column" error if they have the same
name, or the "cant find column on mapping" if it has a unique name.  added tests for both.
CHANGES
lib/sqlalchemy/orm/properties.py
test/orm/relationships.py