mirror of
https://github.com/django/django.git
synced 2025-12-11 11:50:49 +00:00
Refs #24793 -- Removed bogus connection argument from SQLCompiler.compile() calls.
The method doesn't expect a connection object to be passed as its second argument.
This commit is contained in:
parent
8b3e1b6e9e
commit
088a6fab1c
1 changed files with 2 additions and 2 deletions
|
|
@ -492,8 +492,8 @@ class TemporalSubtraction(CombinedExpression):
|
||||||
|
|
||||||
def as_sql(self, compiler, connection):
|
def as_sql(self, compiler, connection):
|
||||||
connection.ops.check_expression_support(self)
|
connection.ops.check_expression_support(self)
|
||||||
lhs = compiler.compile(self.lhs, connection)
|
lhs = compiler.compile(self.lhs)
|
||||||
rhs = compiler.compile(self.rhs, connection)
|
rhs = compiler.compile(self.rhs)
|
||||||
return connection.ops.subtract_temporals(self.lhs.output_field.get_internal_type(), lhs, rhs)
|
return connection.ops.subtract_temporals(self.lhs.output_field.get_internal_type(), lhs, rhs)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue