summaryrefslogtreecommitdiff
path: root/tests/aggregation
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2020-03-03 09:58:23 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-03-03 11:25:37 +0100
commitaee0bebc2faf9c6de8211b05d5f1281dc016084f (patch)
tree390cfff7766f30cdcb3839cb113cf0818a622907 /tests/aggregation
parenta19505eb2ecd4a07ff39f3f66898e68b69d0e680 (diff)
downloaddjango-aee0bebc2faf9c6de8211b05d5f1281dc016084f.tar.gz
Refs #31331 -- Checked ONLY_FULL_GROUP_BY mode in AggregateTestCase.test_aggregation_subquery_annotation_multivalued().
Diffstat (limited to 'tests/aggregation')
-rw-r--r--tests/aggregation/tests.py2
1 files changed, 1 insertions, 1 deletions
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.',
)