summaryrefslogtreecommitdiff
path: root/django/db/backends/sqlite3
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-08-19 23:24:59 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-08-19 23:24:59 +0000
commitd3e69c3a47dd9fc7c36414c029d9919b84b0b822 (patch)
treeb05503be94f0c163359ceb3bb93ee6d2969ba575 /django/db/backends/sqlite3
parent5ce050a5f5beab38e89b1e6a9c8b1c946252cd7f (diff)
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
Diffstat (limited to 'django/db/backends/sqlite3')
-rw-r--r--django/db/backends/sqlite3/base.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py
index b1d7dc8db1..75c753ef22 100644
--- a/django/db/backends/sqlite3/base.py
+++ b/django/db/backends/sqlite3/base.py
@@ -115,12 +115,6 @@ def _sqlite_extract(lookup_type, dt):
return None
return str(getattr(dt, lookup_type))
-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()"