mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-12 11:49:59 -04:00
- Fixed bug when calling select([literal('foo')])
or select([bindparam('foo')]).
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user