From 0db8bf3d60f7a027391ce89555bdb4a95ad0a227 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Tue, 29 Nov 2022 12:31:14 +0100 Subject: Refs #10929 -- Fixed aggregates crash when passing strings as defaults. Previously strings were interpreted as F() expressions and default crashed with AttributeError: 'F' object has no attribute 'empty_result_set_value' --- tests/postgres_tests/test_aggregates.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/postgres_tests') diff --git a/tests/postgres_tests/test_aggregates.py b/tests/postgres_tests/test_aggregates.py index 9cca121802..629493b78f 100644 --- a/tests/postgres_tests/test_aggregates.py +++ b/tests/postgres_tests/test_aggregates.py @@ -125,6 +125,7 @@ class TestGeneralAggregate(PostgreSQLTestCase): (BoolAnd("boolean_field", default=False), False), (BoolOr("boolean_field", default=False), False), (JSONBAgg("integer_field", default=Value('[""]')), [""]), + (StringAgg("char_field", delimiter=";", default=""), ""), ( StringAgg("char_field", delimiter=";", default=Value("")), "", -- cgit v1.2.1