mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
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:
parent
5ce050a5f5
commit
d3e69c3a47
10 changed files with 30 additions and 44 deletions
|
@ -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'"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue