From: Mike Bayer Date: Sat, 30 Jun 2007 22:00:05 +0000 (+0000) Subject: fix to test created in [changeset:2621], was corrected in trunk in [changeset:2637]. X-Git-Tag: rel_0_4_6~146 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e6f6ce636d79b83b924f1541c877d31c1a33acd;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix to test created in [changeset:2621], was corrected in trunk in [changeset:2637]. very weird that it was passing on sqlite/postgres since it was producing a SELECT without a FROM. --- diff --git a/test/orm/inheritance/polymorph2.py b/test/orm/inheritance/polymorph2.py index e493823f58..cdfd8a8eb5 100644 --- a/test/orm/inheritance/polymorph2.py +++ b/test/orm/inheritance/polymorph2.py @@ -730,7 +730,7 @@ class GenerativeTest(testbase.AssertMixin): # into the WHERE criterion, using a correlated select. ticket #577 tracks # that Query's adaptation of the WHERE clause does not dig into the # mapped selectable itself, which permanently breaks the mapped selectable. - r = session.query(Person).filter(Car.c.owner == select([Car.c.owner], Car.c.owner==employee_join.c.person_id)) + r = session.query(Person).filter(exists([Car.c.owner], Car.c.owner==employee_join.c.person_id)) assert str(list(r)) == "[Engineer E4, field X, status Status dead]" class MultiLevelTest(testbase.ORMTest):