Kaydet (Commit) 419b6ec7 authored tarafından Tim Graham's avatar Tim Graham Kaydeden (comit) GitHub

Removed unused branch in SQLCompiler.as_subquery_condition().

Unused since dcdc579d.
üst 6f3c78db
...@@ -884,9 +884,6 @@ class SQLCompiler(object): ...@@ -884,9 +884,6 @@ class SQLCompiler(object):
def as_subquery_condition(self, alias, columns, compiler): def as_subquery_condition(self, alias, columns, compiler):
qn = compiler.quote_name_unless_alias qn = compiler.quote_name_unless_alias
qn2 = self.connection.ops.quote_name qn2 = self.connection.ops.quote_name
if len(columns) == 1:
sql, params = self.as_sql()
return '%s.%s IN (%s)' % (qn(alias), qn2(columns[0]), sql), params
for index, select_col in enumerate(self.query.select): for index, select_col in enumerate(self.query.select):
lhs_sql, lhs_params = self.compile(select_col) lhs_sql, lhs_params = self.compile(select_col)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment