summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2015-12-10 15:42:25 +0500
committerTim Graham <timograham@gmail.com>2015-12-15 07:30:30 -0500
commit192d1eb5c3691cd7bb6e5f9caaaf5bb00c60664e (patch)
tree5abed8afdda49226d20409cc430d2d5ceca6ebc9 /django
parentc402db2e2f3315dc3292526a6bdae36630026dfe (diff)
[1.9.x] Fixed #25894 -- Fixed evaluation of zero-length slices of QuerySet.values().
Backport of 69b69f6d6085d80ccf36a3e999e9e5b98d580786 from master
Diffstat (limited to 'django')
-rw-r--r--django/db/models/sql/compiler.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py
index 90121bdb37..ed07eaff10 100644
--- a/django/db/models/sql/compiler.py
+++ b/django/db/models/sql/compiler.py
@@ -376,8 +376,6 @@ class SQLCompiler(object):
If 'with_limits' is False, any limit/offset information is not included
in the query.
"""
- if with_limits and self.query.low_mark == self.query.high_mark:
- return '', ()
self.subquery = subquery
refcounts_before = self.query.alias_refcount.copy()
try: