mirror of
https://github.com/django/django.git
synced 2025-01-27 02:29:55 +00:00
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…
x
Reference in New Issue
Block a user