]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- fix this for pg8000 of all backends...
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 Mar 2015 21:11:22 +0000 (17:11 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 Mar 2015 21:11:22 +0000 (17:11 -0400)
lib/sqlalchemy/testing/suite/test_select.py

index ecc92b884b1efedf7e19b3dbc69961d7c109426d..eaf3f03c209f9a78ece745f995517ccf1ea608a3 100644 (file)
@@ -89,7 +89,7 @@ class OrderByLabelTest(fixtures.TablesTest):
     def test_group_by_composed(self):
         table = self.tables.some_table
         expr = (table.c.x + table.c.y).label('lx')
-        stmt = select([func.count(1), expr]).group_by(expr).order_by(expr)
+        stmt = select([func.count(table.c.id), expr]).group_by(expr).order_by(expr)
         self._assert_result(
             stmt,
             [(1, 3), (1, 5), (1, 7)]