diff options
author | Federico Di Gregorio <fog@initd.org> | 2005-12-06 05:55:58 +0000 |
---|---|---|
committer | Federico Di Gregorio <fog@initd.org> | 2005-12-06 05:55:58 +0000 |
commit | 5ea2fa636fa43eecf8d5d8f2d4b826f077fc1bcb (patch) | |
tree | fc4bd824258adc068fc76856539e7072040c2fe6 /lib/extras.py | |
parent | 127c14809cb0c04d8b1a291c2306d95181b9dc45 (diff) | |
download | psycopg2-5ea2fa636fa43eecf8d5d8f2d4b826f077fc1bcb.tar.gz |
Better DictCursor.
Diffstat (limited to 'lib/extras.py')
-rw-r--r-- | lib/extras.py | 6 |
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: |