mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-11 19:46:36 +03:00
Fixed superclass methods call.
Methods execute() and callproc() in DictCursor and RealDictCursor should call DictCursorBase methods, not _cursor's ones. Reported by Alexey Luchko on the ML.
This commit is contained in:
parent
667387e746
commit
55828c2ea3
|
@ -118,12 +118,12 @@ class DictCursor(DictCursorBase):
|
|||
def execute(self, query, vars=None):
|
||||
self.index = {}
|
||||
self._query_executed = 1
|
||||
return _cursor.execute(self, query, vars)
|
||||
return DictCursorBase.execute(self, query, vars)
|
||||
|
||||
def callproc(self, procname, vars=None):
|
||||
self.index = {}
|
||||
self._query_executed = 1
|
||||
return _cursor.callproc(self, procname, vars)
|
||||
return DictCursorBase.callproc(self, procname, vars)
|
||||
|
||||
def _build_index(self):
|
||||
if self._query_executed == 1 and self.description:
|
||||
|
@ -215,12 +215,12 @@ class RealDictCursor(DictCursorBase):
|
|||
def execute(self, query, vars=None):
|
||||
self.column_mapping = []
|
||||
self._query_executed = 1
|
||||
return _cursor.execute(self, query, vars)
|
||||
return DictCursorBase.execute(self, query, vars)
|
||||
|
||||
def callproc(self, procname, vars=None):
|
||||
self.column_mapping = []
|
||||
self._query_executed = 1
|
||||
return _cursor.callproc(self, procname, vars)
|
||||
return DictCursorBase.callproc(self, procname, vars)
|
||||
|
||||
def _build_index(self):
|
||||
if self._query_executed == 1 and self.description:
|
||||
|
|
Loading…
Reference in New Issue
Block a user