mirror of
https://github.com/django/django.git
synced 2025-08-22 11:34:33 +00:00
Fixed #27615 -- Used timedeltas as arguments to Oracle database driver.
Removed unused DatabaseFeatures.driver_supports_timedeltas workaround.
This commit is contained in:
parent
fae56427e1
commit
7d14889aa3
4 changed files with 2 additions and 16 deletions
|
@ -600,8 +600,7 @@ class Value(Expression):
|
|||
class DurationValue(Value):
|
||||
def as_sql(self, compiler, connection):
|
||||
connection.ops.check_expression_support(self)
|
||||
if (connection.features.has_native_duration_field and
|
||||
connection.features.driver_supports_timedelta_args):
|
||||
if connection.features.has_native_duration_field:
|
||||
return super(DurationValue, self).as_sql(compiler, connection)
|
||||
return connection.ops.date_interval_sql(self.value)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue