Refactored get_limit_offset_sql() to DatabaseOperations.limit_offset_sql(). Refs #5106

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5959 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2007-08-19 23:24:59 +00:00
parent 5ce050a5f5
commit d3e69c3a47
10 changed files with 30 additions and 44 deletions

View file

@ -555,7 +555,7 @@ class _QuerySet(object):
# LIMIT and OFFSET clauses
if self._limit is not None:
sql.append("%s " % backend.get_limit_offset_sql(self._limit, self._offset))
sql.append("%s " % connection.ops.limit_offset_sql(self._limit, self._offset))
else:
assert self._offset is None, "'offset' is not allowed without 'limit'"