]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix to test created in [changeset:2621], was corrected in trunk in [changeset:2637].
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 30 Jun 2007 22:00:05 +0000 (22:00 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 30 Jun 2007 22:00:05 +0000 (22:00 +0000)
very weird that it was passing on sqlite/postgres since it was producing a SELECT without a FROM.

test/orm/inheritance/polymorph2.py

index e493823f58e46d826bf979a2dc905da16ad3504f..cdfd8a8eb53f94c099bbb0551b2efa64755706a2 100644 (file)
@@ -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):