diff options
Diffstat (limited to 'test/sql/test_compiler.py')
-rw-r--r-- | test/sql/test_compiler.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/sql/test_compiler.py b/test/sql/test_compiler.py index 1be76c696..917c7d89d 100644 --- a/test/sql/test_compiler.py +++ b/test/sql/test_compiler.py @@ -962,6 +962,15 @@ class SelectTest(fixtures.TestBase, AssertsCompiledSQL): ) + def test_where_empty(self): + self.assert_compile( + select([table1.c.myid]).where(and_()), + "SELECT mytable.myid FROM mytable" + ) + self.assert_compile( + select([table1.c.myid]).where(or_()), + "SELECT mytable.myid FROM mytable" + ) def test_multiple_col_binds(self): self.assert_compile( |