Fixed a bozo bug from [7885]. Fixed #7698.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7901 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2008-07-12 11:01:57 +00:00
parent 4aa6c57251
commit 52d985fac3
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ class Query(object):
if with_limits: if with_limits:
if self.high_mark is not None: if self.high_mark is not None:
result.append('LIMIT %d' % (self.high_mark - self.low_mark)) result.append('LIMIT %d' % (self.high_mark - self.low_mark))
if self.low_mark is not None: if self.low_mark:
if self.high_mark is None: if self.high_mark is None:
val = self.connection.ops.no_limit_value() val = self.connection.ops.no_limit_value()
if val: if val: