diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2017-07-06 13:37:47 +0200 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2017-07-06 07:37:47 -0400 |
commit | df1106a40ff0cb8946e36e96edb1da6301e0eacd (patch) | |
tree | 069ca03a0bf5ea3de336d014ea30f69755b2e9f2 /django/db/backends/mysql/operations.py | |
parent | 6de2930078d5d13894315c0a88549e6a5e71c701 (diff) | |
download | django-df1106a40ff0cb8946e36e96edb1da6301e0eacd.tar.gz |
Fixed #28365 -- Unified DatabaseOperations.date_interval_sql() return value with similar methods.
Diffstat (limited to 'django/db/backends/mysql/operations.py')
-rw-r--r-- | django/db/backends/mysql/operations.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/mysql/operations.py b/django/db/backends/mysql/operations.py index 584eb56e70..e7fc2b93bf 100644 --- a/django/db/backends/mysql/operations.py +++ b/django/db/backends/mysql/operations.py @@ -96,7 +96,7 @@ class DatabaseOperations(BaseDatabaseOperations): return "TIME(%s)" % (field_name) def date_interval_sql(self, timedelta): - return "INTERVAL '%06f' SECOND_MICROSECOND" % (timedelta.total_seconds()), [] + return "INTERVAL '%06f' SECOND_MICROSECOND" % timedelta.total_seconds() def format_for_duration_arithmetic(self, sql): if self.connection.features.supports_microsecond_precision: |