raiseOperationalError("Invalid use of fetch iterator")
...
...
@@ -137,7 +139,7 @@ class TDengineCursor(object):
else:
raiseProgrammingError(
CTaosInterface.errStr(
self._result),errno)
self._result),errno)
defexecutemany(self,operation,seq_of_parameters):
"""Prepare a database operation (query or command) and then execute it against all parameter sequences or mappings found in the sequence seq_of_parameters.
...
...
@@ -148,6 +150,8 @@ class TDengineCursor(object):
"""Fetch the next row of a query result set, returning a single sequence, or None when no more data is available.
"""
pass
deffetchmany(self):
pass
defistype(self,col,dataType):
if(dataType.upper()=="BOOL"):
...
...
@@ -180,9 +184,6 @@ class TDengineCursor(object):
returnFalse
deffetchmany(self):
pass
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.