summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql/base.py
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/postgresql/base.py
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/postgresql/base.py')
-rw-r--r--django/db/backends/postgresql/base.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/django/db/backends/postgresql/base.py b/django/db/backends/postgresql/base.py
index 1642a51d7e..4926ddf8d1 100644
--- a/django/db/backends/postgresql/base.py
+++ b/django/db/backends/postgresql/base.py
@@ -131,12 +131,6 @@ def dictfetchall(cursor):
"Returns all rows from a cursor as a dict"
return cursor.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()"