Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed backend.dictfetchmany(), as it wasn't being used anywhere

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5969 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ba49e7be08e340db9c0e570619388e9e2ea69509 1 parent 1b4cfd4
@adrianholovaty adrianholovaty authored
View
1  django/db/backends/ado_mssql/base.py
@@ -102,7 +102,6 @@ def _cursor(self, settings):
supports_tablespaces = True
uses_case_insensitive_names = False
-dictfetchmany = util.dictfetchmany
dictfetchall = util.dictfetchall
OPERATOR_MAPPING = {
View
1  django/db/backends/dummy/base.py
@@ -39,7 +39,6 @@ def close(self):
supports_constraints = False
supports_tablespaces = False
-dictfetchmany = complain
dictfetchall = complain
OPERATOR_MAPPING = {}
View
1  django/db/backends/mysql/base.py
@@ -184,7 +184,6 @@ def get_server_version(self):
supports_tablespaces = False
uses_case_insensitive_names = False
-dictfetchmany = util.dictfetchmany
dictfetchall = util.dictfetchall
OPERATOR_MAPPING = {
View
1  django/db/backends/mysql_old/base.py
@@ -203,7 +203,6 @@ def get_server_version(self):
supports_tablespaces = False
uses_case_insensitive_names = False
-dictfetchmany = util.dictfetchmany
dictfetchall = util.dictfetchall
OPERATOR_MAPPING = {
View
1  django/db/backends/oracle/base.py
@@ -224,7 +224,6 @@ def to_unicode(s):
return force_unicode(s)
return s
-dictfetchmany = util.dictfetchmany
dictfetchall = util.dictfetchall
def get_field_cast_sql(db_type):
View
4 django/db/backends/postgresql/base.py
@@ -200,10 +200,6 @@ def _cursor(self, settings):
supports_tablespaces = False
uses_case_insensitive_names = False
-def dictfetchmany(cursor, number):
- "Returns a certain number of rows from a cursor as a dict"
- return cursor.dictfetchmany(number)
-
def dictfetchall(cursor):
"Returns all rows from a cursor as a dict"
return cursor.dictfetchall()
View
1  django/db/backends/postgresql_psycopg2/base.py
@@ -163,7 +163,6 @@ def _cursor(self, settings):
supports_tablespaces = False
uses_case_insensitive_names = False
-dictfetchmany = util.dictfetchmany
dictfetchall = util.dictfetchall
OPERATOR_MAPPING = {
View
1  django/db/backends/sqlite3/base.py
@@ -120,7 +120,6 @@ def convert_query(self, query, num_params):
supports_tablespaces = False
uses_case_insensitive_names = False
-dictfetchmany = util.dictfetchmany
dictfetchall = util.dictfetchall
def _sqlite_extract(lookup_type, dt):
View
6 django/db/backends/util.py
@@ -133,12 +133,6 @@ def _dict_helper(desc, row):
"Returns a dictionary for the given cursor.description and result row."
return dict(zip([col[0] for col in desc], row))
-def dictfetchmany(cursor, number):
- "Returns a certain number of rows from a cursor as a dict"
- desc = cursor.description
- for row in cursor.fetchmany(number):
- yield _dict_helper(desc, row)
-
def dictfetchall(cursor):
"Returns all rows from a cursor as a dict"
desc = cursor.description
Please sign in to comment.
Something went wrong with that request. Please try again.