diff options
author | Stefan Urbanek <stefan@agentfarms.net> | 2015-08-25 23:55:12 -0700 |
---|---|---|
committer | Stefan Urbanek <stefan@agentfarms.net> | 2015-08-25 23:56:13 -0700 |
commit | 72478db2f849220c2543bffed44d0f56fb609b48 (patch) | |
tree | 80fbffa644be3c1d95cf04b9a59167f9e3153533 | |
parent | 7e0658528fec59f4ec731dbabd3f48f6c2e69a5f (diff) | |
download | sqlalchemy-pr/167.tar.gz |
added sql compiler test for FULL OUTER JOINpr/167
-rw-r--r-- | test/sql/test_compiler.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/sql/test_compiler.py b/test/sql/test_compiler.py index 7ff7d68af..e6d8d488d 100644 --- a/test/sql/test_compiler.py +++ b/test/sql/test_compiler.py @@ -1537,6 +1537,17 @@ class SelectTest(fixtures.TestBase, AssertsCompiledSQL): "mytable.myid = :myid_1 OR myothertable.othername != :othername_1 " "OR EXISTS (select yay from foo where boo = lar)", ) + def test_full_outer_join(self): + self.assert_compile( + select( + [table1], + from_obj=[join(table1, table2, table1.c.myid + == table2.c.otherid, full=True)] + ), + "SELECT mytable.myid, mytable.name, mytable.description FROM " + "mytable FULL OUTER JOIN myothertable ON mytable.myid = myothertable.otherid") + + def test_compound_selects(self): assert_raises_message( exc.ArgumentError, |