diff --git a/pinotdb/db.py b/pinotdb/db.py index 7e9ac8b..e1546bf 100644 --- a/pinotdb/db.py +++ b/pinotdb/db.py @@ -524,10 +524,10 @@ def fetchmany(self, size=None): def fetchall(self): """ Fetch all (remaining) rows of a query result, returning them as a - sequence of sequences (e.g. a list of tuples). Note that the cursor's - arraysize attribute can affect the performance of this operation. + sequence of sequences (e.g. a list of tuples). """ - return list(self) + results, self._results = self._results, [] + return results @check_result @check_closed