1
0
mirror of https://github.com/django/django.git synced 2025-10-26 07:06:08 +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:
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

@@ -85,12 +85,6 @@ dictfetchone = util.dictfetchone
dictfetchmany = util.dictfetchmany
dictfetchall = util.dictfetchall
def get_limit_offset_sql(limit, offset=None):
sql = "LIMIT %s" % limit
if offset and offset != 0:
sql += " OFFSET %s" % offset
return sql
def get_random_function_sql():
return "RANDOM()"