summaryrefslogtreecommitdiff
path: root/lib/extras.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/extras.py')
-rw-r--r--lib/extras.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/extras.py b/lib/extras.py
index 06d3657..dcbd65e 100644
--- a/lib/extras.py
+++ b/lib/extras.py
@@ -290,17 +290,17 @@ class NamedTupleCursor(_cursor):
return nt(*t)
def fetchmany(self, size=None):
+ ts = _cursor.fetchmany(self, size)
nt = self.Record
if nt is None:
nt = self.Record = self._make_nt()
- ts = _cursor.fetchmany(self, size)
return [nt(*t) for t in ts]
def fetchall(self):
+ ts = _cursor.fetchall(self)
nt = self.Record
if nt is None:
nt = self.Record = self._make_nt()
- ts = _cursor.fetchall(self)
return [nt(*t) for t in ts]
def __iter__(self):