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:
parent
ba49e7be08
commit
a6a5e3cf32
|
@ -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',
|
||||
|
|
|
@ -39,6 +39,5 @@ class DatabaseWrapper(object):
|
|||
|
||||
supports_constraints = False
|
||||
supports_tablespaces = False
|
||||
dictfetchall = complain
|
||||
|
||||
OPERATOR_MAPPING = {}
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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)"
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue