From aee0bebc2faf9c6de8211b05d5f1281dc016084f Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Tue, 3 Mar 2020 09:58:23 +0100 Subject: [PATCH] Refs #31331 -- Checked ONLY_FULL_GROUP_BY mode in AggregateTestCase.test_aggregation_subquery_annotation_multivalued(). --- tests/aggregation/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/aggregation/tests.py b/tests/aggregation/tests.py index 439a398b76..95b77ef87b 100644 --- a/tests/aggregation/tests.py +++ b/tests/aggregation/tests.py @@ -1193,7 +1193,7 @@ class AggregateTestCase(TestCase): @skipUnlessDBFeature('supports_subqueries_in_group_by') @skipIf( - connection.vendor == 'mysql', + connection.vendor == 'mysql' and 'ONLY_FULL_GROUP_BY' in connection.sql_mode, 'GROUP BY optimization does not work properly when ONLY_FULL_GROUP_BY ' 'mode is enabled on MySQL, see #31331.', )