[2.1.x] Fixed #29416 -- Removed unnecesary subquery from GROUP BY clause on MySQL when using a RawSQL annotation.

Regression in 1d070d027c.
Backport of 4ab1f559e8 from master
This commit is contained in:
Mariusz Felisiak 2018-05-28 00:25:19 +02:00 committed by Tim Graham
parent 158e7804e7
commit b6e48f514e
3 changed files with 18 additions and 1 deletions

View file

@ -14,3 +14,6 @@ Bugfixes
* Fixed detection of custom URL converters in included patterns
(:ticket:`29415`).
* Fixed a regression that added an unnecessary subquery to the ``GROUP BY``
clause on MySQL when using a ``RawSQL`` annotation (:ticket:`29416`).