summaryrefslogtreecommitdiff
path: root/lib/extras.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/extras.py')
-rw-r--r--lib/extras.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/extras.py b/lib/extras.py
index 39adf0c..a69caa2 100644
--- a/lib/extras.py
+++ b/lib/extras.py
@@ -37,6 +37,12 @@ class DictCursor(_cursor):
self.index = {}
self.__query_executed = 1
return _cursor.execute(self, query, vars, async)
+
+ def callproc(self, procname, vars=None):
+ self.row_factory = DictRow
+ self.index = {}
+ self.__query_executed = 1
+ return _cursor.callproc(self, procname, vars)
def _build_index(self):
if self.__query_executed == 1 and self.description: