diff options
| author | Honza Kral <honza.kral@gmail.com> | 2013-02-24 12:38:32 +0100 |
|---|---|---|
| committer | Honza Kral <honza.kral@gmail.com> | 2013-02-24 12:38:32 +0100 |
| commit | cbb9f629b88d97dd9a3f8d425fd56c8b80d7cddf (patch) | |
| tree | fcf349af9425baea5def6e2f0a422ddabc174064 /django/db/models/sql/where.py | |
| parent | 5a6a4249f3a6b16ca93ce436017d02433f6ec47f (diff) | |
Revert "fixes #19263" - Fails if not SQLite
This reverts commit 2b76f19f2b89ac96bae2a169d71b23553c8101c7.
Diffstat (limited to 'django/db/models/sql/where.py')
| -rw-r--r-- | django/db/models/sql/where.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/django/db/models/sql/where.py b/django/db/models/sql/where.py index 603ae3dfbe..ef856893b5 100644 --- a/django/db/models/sql/where.py +++ b/django/db/models/sql/where.py @@ -204,10 +204,6 @@ class WhereNode(tree.Node): raise EmptyResultSet if extra: return ('%s IN %s' % (field_sql, extra), params) - if not params: - # Empty params would generate invalid sql in subquery - raise EmptyResultSet - max_in_list_size = connection.ops.max_in_list_size() if max_in_list_size and len(params) > max_in_list_size: # Break up the params list into an OR of manageable chunks. |
