Fixed #27856 -- Improved accuracy of date subtraction on PostgreSQL.

Accuracy was incorrect when dates differ by a month or more.
This commit is contained in:
Vytis Banaitis 2017-02-17 20:34:22 +02:00 committed by Tim Graham
parent 5a6f70b428
commit 4045fd56cb
3 changed files with 23 additions and 4 deletions

View file

@ -17,3 +17,6 @@ Bugfixes
* Fixed a crash on Oracle and PostgreSQL when subtracting ``DurationField``
or ``IntegerField`` from ``DateField`` (:ticket:`27828`).
* Fixed query expression date subtraction accuracy on PostgreSQL for
differences large an a month (:ticket:`27856`).