aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/panels/sql.py
diff options
context:
space:
mode:
authorRob Hudson2008-10-07 22:43:32 -0700
committerRob Hudson2008-10-07 22:43:32 -0700
commit285a03c0d1ab0f4b6567278f1e1871e2d5c3e21d (patch)
tree8aa6611faee150201a9b1feb37e14b7eba66b840 /debug_toolbar/panels/sql.py
parentd8935590551dfa708ce46d458c920feb42e3ea2f (diff)
downloaddjango-debug-toolbar-285a03c0d1ab0f4b6567278f1e1871e2d5c3e21d.tar.bz2
Since we're concatenating params, make the default empty value a string.
Diffstat (limited to 'debug_toolbar/panels/sql.py')
-rw-r--r--debug_toolbar/panels/sql.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug_toolbar/panels/sql.py b/debug_toolbar/panels/sql.py
index dbf92c6..56b83a0 100644
--- a/debug_toolbar/panels/sql.py
+++ b/debug_toolbar/panels/sql.py
@@ -19,7 +19,7 @@ class DatabaseStatTracker(util.CursorDebugWrapper):
return self.cursor.execute(sql, params)
finally:
stop = time.time()
- _params = None
+ _params = ''
try:
_params = simplejson.dumps([force_unicode(x) for x in params])
except TypeError: