diff options
author | Stefan Urbanek <stefan@agentfarms.net> | 2015-10-24 13:33:27 -0700 |
---|---|---|
committer | Stefan Urbanek <stefan@agentfarms.net> | 2015-10-24 13:33:27 -0700 |
commit | a2dc8d9ce1a5c9069c2cc7124c513bad5991e0f4 (patch) | |
tree | b22479161ffec3b08f0a2cb4874edf86da29238c /test/sql/test_compiler.py | |
parent | c2c4fc14d592a022e192e5e63e015c0f0c00c893 (diff) | |
download | sqlalchemy-pr/209.tar.gz |
Added FULL OUTER JOIN through Join(full=True)pr/209
Diffstat (limited to 'test/sql/test_compiler.py')
-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 f6f2ec740..924cc3cdd 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, |