mirror of https://github.com/django/django.git
Fixed #2913: CursorDebugWrapper no longer double-tuple-izes parameters. Thanks, artdent@freeshell.org
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4045 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
92151b2d28
commit
86143f7599
|
@ -17,7 +17,7 @@ class CursorDebugWrapper(object):
|
|||
if not isinstance(params, (tuple, dict)):
|
||||
params = tuple(params)
|
||||
self.db.queries.append({
|
||||
'sql': sql % tuple(params),
|
||||
'sql': sql % params,
|
||||
'time': "%.3f" % (stop - start),
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue