diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-08-06 21:52:24 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-08-06 21:52:24 +0000 |
| commit | 8446b805333f87e80a7680cfc8939d566fb033df (patch) | |
| tree | 25ddfa7fe3a7b5f468b468a4874ce537e62e184f /test/sql | |
| parent | 2dde45881b07df9233461c9a19b647f9b7dc816c (diff) | |
| download | sqlalchemy-8446b805333f87e80a7680cfc8939d566fb033df.tar.gz | |
- added desc() and asc() directly to CompareMixin
Diffstat (limited to 'test/sql')
| -rw-r--r-- | test/sql/select.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/sql/select.py b/test/sql/select.py index a7ce1059e..2e099b01a 100644 --- a/test/sql/select.py +++ b/test/sql/select.py @@ -405,6 +405,12 @@ sq.myothertable_othername AS sq_myothertable_othername FROM (" + sqstring + ") A table2.select(order_by = [table2.c.otherid, asc(table2.c.othername)]), "SELECT myothertable.otherid, myothertable.othername FROM myothertable ORDER BY myothertable.otherid, myothertable.othername ASC" ) + + self.runtest( + table2.select(order_by = [table2.c.otherid, table2.c.othername.desc()]), + "SELECT myothertable.otherid, myothertable.othername FROM myothertable ORDER BY myothertable.otherid, myothertable.othername DESC" + ) + def testgroupby(self): self.runtest( select([table2.c.othername, func.count(table2.c.otherid)], group_by = [table2.c.othername]), |
