diff options
| author | Rob Hudson | 2008-10-07 22:43:32 -0700 | 
|---|---|---|
| committer | Rob Hudson | 2008-10-07 22:43:32 -0700 | 
| commit | 285a03c0d1ab0f4b6567278f1e1871e2d5c3e21d (patch) | |
| tree | 8aa6611faee150201a9b1feb37e14b7eba66b840 /debug_toolbar/panels/sql.py | |
| parent | d8935590551dfa708ce46d458c920feb42e3ea2f (diff) | |
| download | django-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.py | 2 | 
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: | 
