mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +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:
parent
9d752dabe3
commit
dd5aa8cb5f
6 changed files with 22 additions and 40 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue