mirror of
https://github.com/django/django.git
synced 2025-09-01 00:08:13 +00:00
Fixed #28365 -- Unified DatabaseOperations.date_interval_sql() return value with similar methods.
This commit is contained in:
parent
6de2930078
commit
df1106a40f
5 changed files with 8 additions and 7 deletions
|
@ -639,7 +639,7 @@ class DurationValue(Value):
|
|||
connection.ops.check_expression_support(self)
|
||||
if connection.features.has_native_duration_field:
|
||||
return super().as_sql(compiler, connection)
|
||||
return connection.ops.date_interval_sql(self.value)
|
||||
return connection.ops.date_interval_sql(self.value), []
|
||||
|
||||
|
||||
class RawSQL(Expression):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue