Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

boulder-oracle-sprint: Fixed #3835 by making CursorDebugWrapper

iterable, as it should have been.


git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@4840 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 05189a61e9d3619576ab0fd163136850ab1142c5 1 parent c4eb6bf
Boulder Sprinters authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 django/db/backends/util.py
View
7 django/db/backends/util.py
@@ -33,6 +33,9 @@ def executemany(self, sql, param_list):
'time': "%.3f" % (stop - start),
})
+ def __iter__(self):
+ return self.cursor.__iter__()
+
def __getattr__(self, attr):
if self.__dict__.has_key(attr):
return self.__dict__[attr]
@@ -98,9 +101,9 @@ def truncate_name(name, length=None):
"""
if length is None or len(name) <= length:
return name
-
+
hash = md5.md5(name).hexdigest()[:4]
-
+
return '%s%s' % (name[:length-4], hash)
##################################################################################
Please sign in to comment.
Something went wrong with that request. Please try again.