From 9c9ef5835200a1bc6410d2769b9699baba9f9a8b Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Sat, 16 Dec 2017 23:59:36 +0500 Subject: [PATCH] Removed unused DatabaseOperations.date_interval_sql() on Oracle. Unused since 5ca82e710e2f92b8c5114492205c8764918407d3. --- django/db/backends/oracle/operations.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/django/db/backends/oracle/operations.py b/django/db/backends/oracle/operations.py index 6e60719086..1b0c6e9ed8 100644 --- a/django/db/backends/oracle/operations.py +++ b/django/db/backends/oracle/operations.py @@ -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'):