  
      def datetime_cast_time_sql(self, field_name, tzname):
          # Since `TimeField` values are stored as TIMESTAMP where only the date
          # part is ignored, convert the field to the specified timezone.
          field_name = self._convert_field_to_tz(field_name, tzname)
          return field_name, []
  
      def datetime_extract_sql(self, lookup_type, field_name, tzname):
          field_name = self._convert_field_to_tz(field_name, tzname)
          sql = self.date_extract_sql(lookup_type, field_name)
          return sql, []
 
</s> remove         sql = 'TRUNC(%s)' % field_name
        return sql, []
 </s> add         return 'TRUNC(%s)' % field_name </s> remove         return sql, []
 </s> add         return sql </s> remove         sql = self.date_extract_sql(lookup_type, field_name)
        return sql, []
 </s> add         return self.date_extract_sql(lookup_type, field_name) </s> remove         field_name, params = self._convert_field_to_tz(field_name, tzname)
        sql = self.date_extract_sql(lookup_type, field_name)
        return sql, params
 </s> add         field_name = self._convert_field_to_tz(field_name, tzname)
        return self.date_extract_sql(lookup_type, field_name) </s> remove         field_name, params = self._convert_field_to_tz(field_name, tzname)
        sql = "TIME(%s)" % field_name
        return sql, params
 </s> add         field_name = self._convert_field_to_tz(field_name, tzname)
        return "TIME(%s)" % field_name
        return self._convert_field_to_tz(field_name, tzname)
  
      def datetime_cast_time_sql(self, field_name, tzname):
          # Since `TimeField` values are stored as TIMESTAMP where only the date
          # part is ignored, convert the field to the specified timezone.
        return self._convert_field_to_tz(field_name, tzname)
        return self._convert_field_to_tz(field_name, tzname)
  
      def datetime_extract_sql(self, lookup_type, field_name, tzname):
          field_name = self._convert_field_to_tz(field_name, tzname)
          sql = self.date_extract_sql(lookup_type, field_name)
          return sql, []
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #27802 -- Unified return value of db backend datetime SQL methods. 
django/db/backends/oracle/operations.py