From deaff3e97fbb166afe7fde42700a504863bd4679 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 15 Jul 2008 15:04:43 +0000 Subject: - Fixed bug when calling select([literal('foo')]) or select([bindparam('foo')]). --- test/sql/select.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/sql/select.py') 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") -- cgit v1.2.1