diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-07-15 15:04:43 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-07-15 15:04:43 +0000 |
| commit | deaff3e97fbb166afe7fde42700a504863bd4679 (patch) | |
| tree | cf5d5e552c60d4916ad203185d1c20a0ad8db064 /test/sql/select.py | |
| parent | af38982273a67ba362d09bebae5e08b8593ce093 (diff) | |
| download | sqlalchemy-deaff3e97fbb166afe7fde42700a504863bd4679.tar.gz | |
- Fixed bug when calling select([literal('foo')])
or select([bindparam('foo')]).
Diffstat (limited to 'test/sql/select.py')
| -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") |
