Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5970 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a6a5e3cf326849da55483cc041d8b69589183976 1 parent ba49e7b
@adrianholovaty adrianholovaty authored
View
2  django/db/backends/ado_mssql/base.py
@@ -102,8 +102,6 @@ def _cursor(self, settings):
supports_tablespaces = True
uses_case_insensitive_names = False
-dictfetchall = util.dictfetchall
-
OPERATOR_MAPPING = {
'exact': '= %s',
'iexact': 'LIKE %s',
View
1  django/db/backends/dummy/base.py
@@ -39,6 +39,5 @@ def close(self):
supports_constraints = False
supports_tablespaces = False
-dictfetchall = complain
OPERATOR_MAPPING = {}
View
2  django/db/backends/mysql/base.py
@@ -184,8 +184,6 @@ def get_server_version(self):
supports_tablespaces = False
uses_case_insensitive_names = False
-dictfetchall = util.dictfetchall
-
OPERATOR_MAPPING = {
'exact': '= %s',
'iexact': 'LIKE %s',
View
2  django/db/backends/mysql_old/base.py
@@ -203,8 +203,6 @@ def get_server_version(self):
supports_tablespaces = False
uses_case_insensitive_names = False
-dictfetchall = util.dictfetchall
-
OPERATOR_MAPPING = {
'exact': '= %s',
'iexact': 'LIKE %s',
View
2  django/db/backends/oracle/base.py
@@ -224,8 +224,6 @@ def to_unicode(s):
return force_unicode(s)
return s
-dictfetchall = util.dictfetchall
-
def get_field_cast_sql(db_type):
if db_type.endswith('LOB'):
return "DBMS_LOB.SUBSTR(%s%s)"
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 dictfetchall(cursor):
- "Returns all rows from a cursor as a dict"
- return cursor.dictfetchall()
-
def typecast_string(s):
"""
Cast all returned strings to unicode strings.
View
2  django/db/backends/postgresql_psycopg2/base.py
@@ -163,8 +163,6 @@ def _cursor(self, settings):
supports_tablespaces = False
uses_case_insensitive_names = False
-dictfetchall = util.dictfetchall
-
OPERATOR_MAPPING = {
'exact': '= %s',
'iexact': 'ILIKE %s',
View
2  django/db/backends/sqlite3/base.py
@@ -120,8 +120,6 @@ def convert_query(self, query, num_params):
supports_tablespaces = False
uses_case_insensitive_names = False
-dictfetchall = util.dictfetchall
-
def _sqlite_extract(lookup_type, dt):
try:
dt = util.typecast_timestamp(dt)
View
6 django/db/backends/util.py
@@ -132,9 +132,3 @@ def truncate_name(name, length=None):
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 dictfetchall(cursor):
- "Returns all rows from a cursor as a dict"
- desc = cursor.description
- for row in cursor.fetchall():
- yield _dict_helper(desc, row)

0 comments on commit a6a5e3c

Please sign in to comment.
Something went wrong with that request. Please try again.