#NEWLINE# def nextset( self ) : #NEWLINE# #INDENT# 'Advance to the next result set.\n\n    Returns:\n      True if there was an available set to advance to, otherwise, None.\n\n    Raises:\n      InternalError: The cursor has been closed, or no statement has been\n        executed yet.\n      DatabaseError: A SQL exception occurred.\n      OperationalError: RPC problem.\n    ' #NEWLINE# self . _CheckOpen ( ) #NEWLINE# self . _CheckExecuted ( 'nextset() called before execute' ) #NEWLINE# self . _rows = collections . deque ( ) #NEWLINE# self . _rowcount = ( - 1 ) #NEWLINE# if ( not request . _more_results ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# request = sql_pb2 . ExecOpRequest ( ) #NEWLINE# request . op . type = client_pb2 . OpProto . NEXT_RESULT #NEWLINE# request . op . statement_id = self . _statement_id #NEWLINE# self . _HandleResult ( self . _conn . MakeRequest ( 'ExecOp' , request ) . result ) #NEWLINE# return True