summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Charette <simon.charette@zapier.com>2019-08-09 21:17:45 -0400
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-08-12 07:47:55 +0200
commit088a6fab1ccd1efcd4ce28b353df3c03dcfa0caf (patch)
treeecfb068cd33fbb973ce4b3b1c7cb1632f98c6c35
parent8b3e1b6e9e4ee87fe85b2e5437faf59457e03e62 (diff)
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.
-rw-r--r--django/db/models/expressions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/models/expressions.py b/django/db/models/expressions.py
index 16975fb98c..9d14caf4cb 100644
--- a/django/db/models/expressions.py
+++ b/django/db/models/expressions.py
@@ -492,8 +492,8 @@ class TemporalSubtraction(CombinedExpression):
def as_sql(self, compiler, connection):
connection.ops.check_expression_support(self)
- lhs = compiler.compile(self.lhs, connection)
- rhs = compiler.compile(self.rhs, connection)
+ lhs = compiler.compile(self.lhs)
+ rhs = compiler.compile(self.rhs)
return connection.ops.subtract_temporals(self.lhs.output_field.get_internal_type(), lhs, rhs)