From: Mike Bayer Date: Tue, 15 May 2007 16:51:40 +0000 (+0000) Subject: restored outerjoin test X-Git-Tag: rel_0_3_8~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1848439d445ad3361b42a2e72f5604fda85dbf7b;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git restored outerjoin test --- diff --git a/test/sql/select.py b/test/sql/select.py index 6d0d3b04cc..395243aeee 100644 --- a/test/sql/select.py +++ b/test/sql/select.py @@ -644,17 +644,15 @@ FROM myothertable ORDER BY myid \ ), from_obj = [ outerjoin(table1, table2, table1.c.myid == table2.c.otherid) ] ) - if False: - self.runtest(query, - "SELECT mytable.myid, mytable.name, mytable.description, myothertable.otherid, myothertable.othername \ - FROM mytable LEFT OUTER JOIN myothertable ON mytable.myid = myothertable.otherid \ - WHERE mytable.name = %(mytable_name)s OR mytable.myid = %(mytable_myid)s OR \ - myothertable.othername != %(myothertable_othername)s OR \ - EXISTS (select yay from foo where boo = lar)", - dialect=postgres.dialect() - ) + self.runtest(query, + "SELECT mytable.myid, mytable.name, mytable.description, myothertable.otherid, myothertable.othername \ +FROM mytable LEFT OUTER JOIN myothertable ON mytable.myid = myothertable.otherid \ +WHERE mytable.name = %(mytable_name)s OR mytable.myid = %(mytable_myid)s OR \ +myothertable.othername != %(myothertable_othername)s OR \ +EXISTS (select yay from foo where boo = lar)", + dialect=postgres.dialect() + ) - print "-------------------------------------------------" self.runtest(query, "SELECT mytable.myid, mytable.name, mytable.description, myothertable.otherid, myothertable.othername \ FROM mytable, myothertable WHERE mytable.myid = myothertable.otherid(+) AND \