File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -409,6 +409,16 @@ fields modified in the custom ``save()`` methods should be added to the
409409``update_fields`` keyword argument before calling ``super()``. See
410410:ref:`overriding-model-methods` for more details.
411411
412+ Dropped support for raw aggregations on MySQL
413+ ---------------------------------------------
414+
415+ MySQL 8+ allows functional dependencies on ``GROUP BY`` columns, so the
416+ pre-Django 4.2 workaround of grouping by primary keys of the main table is
417+ removed. As a consequence, using ``RawSQL()`` aggregations is no longer
418+ supported on MySQL as there is no way to determine if such aggregations are
419+ needed or valid in the ``GROUP BY`` clause. Use :ref:`aggregation-functions`
420+ instead.
421+
412422Miscellaneous
413423-------------
414424
You can’t perform that action at this time.
0 commit comments