"""Database cursor which is used to manage the context of a fetch operation.
...
...
@@ -51,7 +50,7 @@ class TDengineCursor(object):
raiseOperationalError("Invalid use of fetch iterator")
ifself._block_rows<=self._block_iter:
block,self._block_rows=CTaosInterface.fetchBlock(
block,self._block_rows=CTaosInterface.fetchRow(
self._result,self._fields)
ifself._block_rows==0:
raiseStopIteration
...
...
@@ -196,18 +195,13 @@ class TDengineCursor(object):
deffetchall(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.
"""
# if threading.get_ident() != self._threadId:
# info ="[WARNING] Cursor fetchall:Thread ID not match,creater:"+str(self._threadId)+" caller:"+str(threading.get_ident())