diff options
| author | Tim Graham <timograham@gmail.com> | 2016-09-27 09:58:53 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-27 09:58:53 -0400 |
| commit | 419b6ec7d08e6de41e80e5368dfc7eb1f0c73845 (patch) | |
| tree | 85f06cfc65afa13fa3e7ad1904c60b3a9e57ebc9 | |
| parent | 6f3c78dbe6f17997aa9d115d041bbb0318061ba7 (diff) | |
Removed unused branch in SQLCompiler.as_subquery_condition().
Unused since dcdc579d162b750ee3449e34efd772703592faca.
| -rw-r--r-- | django/db/models/sql/compiler.py | 3 |
1 files changed, 0 insertions, 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) |
