[3.0.x] Fixed #31312 -- Properly ordered temporal subtraction params on MySQL.

Regression in 9bcbcd599a.

Thanks rick2ricks for the report.

Backport of 41ebe60728 from master
This commit is contained in:
Simon Charette 2020-02-27 00:34:37 -05:00 committed by Mariusz Felisiak
parent 59ac25c93b
commit 16cacdcb3f
3 changed files with 25 additions and 4 deletions

View file

@ -23,3 +23,7 @@ Bugfixes
* Fixed a regression in Django 3.0 that caused misplacing parameters in logged
SQL queries on Oracle (:ticket:`31271`).
* Fixed a regression in Django 3.0.3 that caused misplacing parameters of SQL
queries when subtracting ``DateField`` or ``DateTimeField`` expressions on
MySQL (:ticket:`31312`).