diff options
| author | Simon Charette <charette.s@gmail.com> | 2023-02-17 20:38:08 -0500 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-02-20 05:54:25 +0100 |
| commit | 278881e37619278789942513916acafaa88d26f3 (patch) | |
| tree | 5d63251a99189484b754931b0f12e97e52ff600b /tests/postgres_tests | |
| parent | f91e085c3054240dbb581c1db9b4a9063c26525c (diff) | |
Fixed #34346 -- Ordered selected expressions by position.
Used the same approach as for #34176 by using selected expressions
position to prevent ambiguous aliases in collisions.
Thanks henribru for the report.
Regression in 04518e310d4552ff7595a34f5a7f93487d78a406.
Diffstat (limited to 'tests/postgres_tests')
| -rw-r--r-- | tests/postgres_tests/test_array.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/postgres_tests/test_array.py b/tests/postgres_tests/test_array.py index f58c9477fc..f7615c974e 100644 --- a/tests/postgres_tests/test_array.py +++ b/tests/postgres_tests/test_array.py @@ -465,10 +465,9 @@ class TestQuerying(PostgreSQLTestCase): {"field__0": 20, "arrayagg": [self.objs[3].pk]}, ], ) - alias = connection.ops.quote_name("field__0") sql = ctx[0]["sql"] self.assertIn("GROUP BY 1", sql) - self.assertIn(f"ORDER BY {alias}", sql) + self.assertIn("ORDER BY 1", sql) def test_index(self): self.assertSequenceEqual( |
