diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-05-27 21:43:29 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-05-27 21:43:29 -0400 |
| commit | ff399ac75074916045410cedae72489cb60e8b50 (patch) | |
| tree | ea3553d73052aaba1abcb86cb0b072ea4fffbc00 /test/sql/test_compiler.py | |
| parent | 0adcfea0d30376461c75cced87481f04a42481c0 (diff) | |
| download | sqlalchemy-ff399ac75074916045410cedae72489cb60e8b50.tar.gz | |
magic accessors to the rescue
Diffstat (limited to 'test/sql/test_compiler.py')
| -rw-r--r-- | test/sql/test_compiler.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/test/sql/test_compiler.py b/test/sql/test_compiler.py index d5f52bdf3..83a02a49e 100644 --- a/test/sql/test_compiler.py +++ b/test/sql/test_compiler.py @@ -746,19 +746,6 @@ class SelectTest(fixtures.TestBase, AssertsCompiledSQL): 'foo || :param_1') - def test_foo(self): - lx = (table1.c.myid + table1.c.myid).label('lx') - ly = (func.lower(table1.c.name) + table1.c.description).label('ly') - dialect = default.DefaultDialect() - - self.assert_compile( - select([lx, ly]).order_by(lx, ly.desc()), - "SELECT mytable.myid + mytable.myid AS lx, " - "lower(mytable.name) || mytable.description AS ly " - "FROM mytable ORDER BY lx, ly DESC", - dialect=dialect - ) - def test_labels_in_expressions(self): lab1 = (table1.c.myid + 12).label('foo') lab2 = func.somefunc(table1.c.name).label('bar') |
