]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- added concept of 'require_embedded' to corresponding_column.
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 5 Mar 2007 23:08:52 +0000 (23:08 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 5 Mar 2007 23:08:52 +0000 (23:08 +0000)
commit9154e1eff1da41c41b31e2a24a6128ff457c7716
tree743bb691fc6e06e5b3d43c29a96568f1ac81a66e
parent7693a680edf9776d3037283f3d63e3aeeb06649e
- added concept of 'require_embedded' to corresponding_column.
requires that the target column be present in a sub-element of the
target selectable.
- embedded logic above more appropriate for ClauseAdapter functionality
since its trying to "pull up" clauses that represent columns within
a larger union up to the level of the union itself.
- the "direction" test against the "foreign_keys" collection apparently
works for an exact "column 'x' is present in the collection", no proxy
relationships needed.  fixes the case of relating a selectable/alias
to one of its underlying tables, probably fixes other scenarios
CHANGES
lib/sqlalchemy/ansisql.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/sql.py
lib/sqlalchemy/sql_util.py
test/orm/relationships.py