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
This commit is contained in:
Adrian Holovaty 2007-08-20 01:14:53 +00:00
parent ba49e7be08
commit a6a5e3cf32
9 changed files with 0 additions and 23 deletions

View File

@ -102,8 +102,6 @@ supports_constraints = True
supports_tablespaces = True
uses_case_insensitive_names = False
dictfetchall = util.dictfetchall
OPERATOR_MAPPING = {
'exact': '= %s',
'iexact': 'LIKE %s',

View File

@ -39,6 +39,5 @@ class DatabaseWrapper(object):
supports_constraints = False
supports_tablespaces = False
dictfetchall = complain
OPERATOR_MAPPING = {}

View File

@ -184,8 +184,6 @@ supports_constraints = True
supports_tablespaces = False
uses_case_insensitive_names = False
dictfetchall = util.dictfetchall
OPERATOR_MAPPING = {
'exact': '= %s',
'iexact': 'LIKE %s',

View File

@ -203,8 +203,6 @@ supports_constraints = True
supports_tablespaces = False
uses_case_insensitive_names = False
dictfetchall = util.dictfetchall
OPERATOR_MAPPING = {
'exact': '= %s',
'iexact': 'LIKE %s',

View File

@ -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 File

@ -200,10 +200,6 @@ supports_constraints = True
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 File

@ -163,8 +163,6 @@ supports_constraints = True
supports_tablespaces = False
uses_case_insensitive_names = False
dictfetchall = util.dictfetchall
OPERATOR_MAPPING = {
'exact': '= %s',
'iexact': 'ILIKE %s',

View File

@ -120,8 +120,6 @@ supports_constraints = False
supports_tablespaces = False
uses_case_insensitive_names = False
dictfetchall = util.dictfetchall
def _sqlite_extract(lookup_type, dt):
try:
dt = util.typecast_timestamp(dt)

View File

@ -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)