summaryrefslogtreecommitdiff
path: root/django/db/backends/base/operations.py
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2020-06-29 11:28:06 +0500
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-06-30 07:04:55 +0200
commitdd5aa8cb5ffc0a89c4b9b8dee45c1c919d203489 (patch)
treede01f3fe7aa62f722d3f494b7d164c2587bc30f7 /django/db/backends/base/operations.py
parent9d752dabe38602a71452ed8c23253e780a40a560 (diff)
Fixed #28925 -- Fixed durations-only expressions crash on SQLite and MySQL.
This removes also unused DatabaseOperations.date_interval_sql().
Diffstat (limited to 'django/db/backends/base/operations.py')
-rw-r--r--django/db/backends/base/operations.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/django/db/backends/base/operations.py b/django/db/backends/base/operations.py
index 2e283a3193..617ac95907 100644
--- a/django/db/backends/base/operations.py
+++ b/django/db/backends/base/operations.py
@@ -99,12 +99,6 @@ class BaseDatabaseOperations:
"""
raise NotImplementedError('subclasses of BaseDatabaseOperations may require a date_extract_sql() method')
- def date_interval_sql(self, timedelta):
- """
- Implement the date interval functionality for expressions.
- """
- raise NotImplementedError('subclasses of BaseDatabaseOperations may require a date_interval_sql() method')
-
def date_trunc_sql(self, lookup_type, field_name):
"""
Given a lookup_type of 'year', 'month', or 'day', return the SQL that