diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-04-28 14:44:21 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-04-28 14:44:21 -0400 |
commit | fc624dcfa40bf765bbfffa2fd964f73422e4dbe8 (patch) | |
tree | 4c60b035430dc65592c7dbefec5788538c438512 /test/sql/test_compiler.py | |
parent | 18370ac032a84da539c54640a425c0fca7613dc9 (diff) | |
download | sqlalchemy-fc624dcfa40bf765bbfffa2fd964f73422e4dbe8.tar.gz |
- test_types, test_compiler, with sqlite at least
Diffstat (limited to 'test/sql/test_compiler.py')
-rw-r--r-- | test/sql/test_compiler.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/sql/test_compiler.py b/test/sql/test_compiler.py index 329d7543e..e3f7df702 100644 --- a/test/sql/test_compiler.py +++ b/test/sql/test_compiler.py @@ -734,13 +734,14 @@ class SelectTest(fixtures.TestBase, AssertsCompiledSQL): 'JOIN myothertable ON mytable.myid = ' 'myothertable.otherid') - def test_label_comparison(self): + def test_label_comparison_one(self): x = func.lala(table1.c.myid).label('foo') self.assert_compile(select([x], x == 5), 'SELECT lala(mytable.myid) AS foo FROM ' 'mytable WHERE lala(mytable.myid) = ' ':param_1') + def test_label_comparison_two(self): self.assert_compile( label('bar', column('foo', type_=String)) + 'foo', 'foo || :param_1') |