summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-10-08 08:43:31 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-10-08 08:43:31 +0000
commit09d84c4d40d1d9796f1d0f52bc3ea1bb93a68435 (patch)
tree4948950d9e2ffd7603afd80b5890e8d65070e551 /tests
parent318c1c32dd6e595600e217fbcf92aa879209e7d7 (diff)
[1.0.X] Applying a limit to a queryset that already had an upper limit of 0
wasn't working properly. Backport of r9201 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9204 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
-rw-r--r--tests/regressiontests/queries/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/regressiontests/queries/models.py b/tests/regressiontests/queries/models.py
index 2f027f8d36..e5d17c0aaf 100644
--- a/tests/regressiontests/queries/models.py
+++ b/tests/regressiontests/queries/models.py
@@ -862,6 +862,8 @@ used in lookups.
Bug #7698 -- People like to slice with '0' as the high-water mark.
>>> Item.objects.all()[0:0]
[]
+>>> Item.objects.all()[0:0][:10]
+[]
Bug #7411 - saving to db must work even with partially read result set in
another cursor.