diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-03-02 21:22:14 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-03-02 21:22:14 +0000 |
commit | 2a77850707db1dc71bd069be04b049cc52af8983 (patch) | |
tree | da3aebcd2d59de3c025b785f2c703b513255953f /test/orm/inheritance5.py | |
parent | 7e2ae824a56c760286e33adce03324b8e696472a (diff) | |
download | sqlalchemy-2a77850707db1dc71bd069be04b049cc52af8983.tar.gz |
- added "fold_equivalents" argument to Join.select(), which removes
'duplicate' columns from the resulting column clause that are known to be
equivalent based on the join condition. this is of great usage when
constructing subqueries of joins which Postgres complains about if
duplicate column names are present.
- added support to polymorphic stuff for more than one "equivalent column",
when trying to target columns in the polymorphic union; this applies
to multi-leveled inheritance
- put above-two concepts together to get the abc_inheritance tests to work
with postgres
Diffstat (limited to 'test/orm/inheritance5.py')
-rw-r--r-- | test/orm/inheritance5.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/orm/inheritance5.py b/test/orm/inheritance5.py index 279c1d95a..640a8d70f 100644 --- a/test/orm/inheritance5.py +++ b/test/orm/inheritance5.py @@ -544,9 +544,7 @@ class RelationTest7(testbase.ORMTest): car_join = polymorphic_union( { - 'car' : cars.select(offroad_cars.c.car_id == None, from_obj=[cars.outerjoin(offroad_cars)]), - # cant do this one because "car_id" from both tables conflicts on pg -# 'car' : cars.outerjoin(offroad_cars).select(offroad_cars.c.car_id == None), + 'car' : cars.outerjoin(offroad_cars).select(offroad_cars.c.car_id == None, fold_equivalents=True), 'offroad' : cars.join(offroad_cars) }, "type", 'car_join') |