From 419b6ec7d08e6de41e80e5368dfc7eb1f0c73845 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 27 Sep 2016 09:58:53 -0400 Subject: [PATCH] Removed unused branch in SQLCompiler.as_subquery_condition(). Unused since dcdc579d162b750ee3449e34efd772703592faca. --- django/db/models/sql/compiler.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py index 7c40fbeb38..1319b288aa 100644 --- a/django/db/models/sql/compiler.py +++ b/django/db/models/sql/compiler.py @@ -884,9 +884,6 @@ class SQLCompiler(object): def as_subquery_condition(self, alias, columns, compiler): qn = compiler.quote_name_unless_alias 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): lhs_sql, lhs_params = self.compile(select_col)