- Fixed bug when calling select([literal('foo')])

or select([bindparam('foo')]).
This commit is contained in:
Mike Bayer
2008-07-15 15:04:43 +00:00
parent af38982273
commit deaff3e97f
3 changed files with 13 additions and 3 deletions
+3
View File
@@ -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")