diff options
| author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2020-06-29 11:28:06 +0500 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-06-30 07:04:55 +0200 |
| commit | dd5aa8cb5ffc0a89c4b9b8dee45c1c919d203489 (patch) | |
| tree | de01f3fe7aa62f722d3f494b7d164c2587bc30f7 /django/db/backends/base | |
| parent | 9d752dabe38602a71452ed8c23253e780a40a560 (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')
| -rw-r--r-- | django/db/backends/base/operations.py | 6 |
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 |
