1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #28925 -- Fixed durations-only expressions crash on SQLite and MySQL.

This removes also unused DatabaseOperations.date_interval_sql().
This commit is contained in:
Sergey Fedoseev
2020-06-29 11:28:06 +05:00
committed by Mariusz Felisiak
parent 9d752dabe3
commit dd5aa8cb5f
6 changed files with 22 additions and 40 deletions

View File

@@ -93,10 +93,6 @@ class SimpleDatabaseOperationTests(SimpleTestCase):
with self.assertRaisesMessage(NotImplementedError, self.may_require_msg % 'date_extract_sql'):
self.ops.time_extract_sql(None, None)
def test_date_interval_sql(self):
with self.assertRaisesMessage(NotImplementedError, self.may_require_msg % 'date_interval_sql'):
self.ops.date_interval_sql(None)
def test_date_trunc_sql(self):
with self.assertRaisesMessage(NotImplementedError, self.may_require_msg % 'date_trunc_sql'):
self.ops.date_trunc_sql(None, None)