diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-11-05 00:59:19 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-11-05 00:59:19 +0000 |
commit | 0e25c2d9e8539dc45dc34c9cc28c7b42f2e97aac (patch) | |
tree | c0bbd8d5dd0573dbf98ca879f0bb626e172c492d /test/sql/selectable.py | |
parent | 303e753b2d674d89f8277e8cd06dd0acf7094549 (diff) | |
download | sqlalchemy-0e25c2d9e8539dc45dc34c9cc28c7b42f2e97aac.tar.gz |
- rewrote and simplified the system used to "target" columns across
selectable expressions. On the SQL side this is represented by the
"corresponding_column()" method. This method is used heavily by the ORM
to "adapt" elements of an expression to similar, aliased expressions,
as well as to target result set columns originally bound to a
table or selectable to an aliased, "corresponding" expression. The new
rewrite features completely consistent and accurate behavior.
- the "orig_set" and "distance" elements as well as all associated
fanfare are gone (hooray !)
- columns now have an optional "proxies" list which is a list of all
columns they are a "proxy" for; only CompoundSelect cols proxy more than one column
(just like before). set operations are used to determine lineage.
- CompoundSelects (i.e. unions) only create one public-facing proxy column per
column name. primary key collections come out with just one column per embedded
PK column.
- made the alias used by eager load limited subquery anonymous.
Diffstat (limited to 'test/sql/selectable.py')
-rwxr-xr-x | test/sql/selectable.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sql/selectable.py b/test/sql/selectable.py index 9fca3ee08..aa04e2936 100755 --- a/test/sql/selectable.py +++ b/test/sql/selectable.py @@ -185,8 +185,8 @@ class SelectableTest(AssertMixin): print j4 print j4.corresponding_column(j2.c.aid) print j4.c.aid - # TODO: this is the assertion case which fails -# assert j4.corresponding_column(j2.c.aid) is j4.c.aid + assert j4.corresponding_column(j2.c.aid) is j4.c.aid + assert j4.corresponding_column(a.c.id) is j4.c.id class PrimaryKeyTest(AssertMixin): def test_join_pk_collapse_implicit(self): |