mirror of
https://github.com/django/django.git
synced 2025-01-08 17:37:20 +00:00
Removed unused DatabaseOperations.date_interval_sql() on Oracle.
Unused since 5ca82e710e
.
This commit is contained in:
parent
6fd6d8383f
commit
9c9ef58352
@ -71,12 +71,6 @@ END;
|
||||
# https://docs.oracle.com/database/121/SQLRF/functions067.htm#SQLRF00639
|
||||
return "EXTRACT(%s FROM %s)" % (lookup_type.upper(), field_name)
|
||||
|
||||
def date_interval_sql(self, timedelta):
|
||||
"""
|
||||
NUMTODSINTERVAL converts number to INTERVAL DAY TO SECOND literal.
|
||||
"""
|
||||
return "NUMTODSINTERVAL(%06f, 'SECOND')" % timedelta.total_seconds()
|
||||
|
||||
def date_trunc_sql(self, lookup_type, field_name):
|
||||
# https://docs.oracle.com/database/121/SQLRF/functions271.htm#SQLRF52058
|
||||
if lookup_type in ('year', 'month'):
|
||||
|
Loading…
Reference in New Issue
Block a user