Skip to content

Commit c482278

Browse files
committed
Also record SQL from callproc.
I'm not sure anyone is using that, but it's in the DB API. Fix #293.
1 parent 8ef3b8c commit c482278

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

debug_toolbar/panels/sql/tracking.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ def _record(self, method, sql, params):
171171
# We keep `sql` to maintain backwards compatibility
172172
self.logger.record(**params)
173173

174+
def callproc(self, procname, params=()):
175+
return self._record(self.cursor.callproc, procname, params)
176+
174177
def execute(self, sql, params=()):
175178
return self._record(self.cursor.execute, sql, params)
176179

0 commit comments

Comments
 (0)