diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/sql/select.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/sql/select.py b/test/sql/select.py index b6a1f7ccc..ddd8ede42 100644 --- a/test/sql/select.py +++ b/test/sql/select.py @@ -739,6 +739,9 @@ FROM mytable, myothertable WHERE foo.id = foofoo(lala) AND datetime(foo) = Today def test_literal(self): + + self.assert_compile(select([literal('foo')]), "SELECT :param_1") + self.assert_compile(select([literal("foo") + literal("bar")], from_obj=[table1]), "SELECT :param_1 || :param_2 AS anon_1 FROM mytable") |
