raiseOperationalError("Invalid use of fetch iterator")
raiseOperationalError("Invalid use of fetch iterator")
...
@@ -137,7 +139,7 @@ class TDengineCursor(object):
...
@@ -137,7 +139,7 @@ class TDengineCursor(object):
else:
else:
raiseProgrammingError(
raiseProgrammingError(
CTaosInterface.errStr(
CTaosInterface.errStr(
self._result),errno)
self._result),errno)
defexecutemany(self,operation,seq_of_parameters):
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.
"""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):
...
@@ -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.
"""Fetch the next row of a query result set, returning a single sequence, or None when no more data is available.
"""
"""
pass
pass
deffetchmany(self):
pass
defistype(self,col,dataType):
defistype(self,col,dataType):
if(dataType.upper()=="BOOL"):
if(dataType.upper()=="BOOL"):
...
@@ -180,9 +184,6 @@ class TDengineCursor(object):
...
@@ -180,9 +184,6 @@ class TDengineCursor(object):
returnFalse
returnFalse
deffetchmany(self):
pass
deffetchall(self):
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.
"""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.