cci_execute_result

Description

The cci_execute_result function gets the execution results (e.g. statement type, result count) performed by cci_execute(). The results of each query are retrieved by CCI_QUERY_RESULT_STMT_TYPE and CCI_QUERY_RESULT_RESULT. The query results used must be deleted by cci_query_result_free.

Syntax

int cci_execute_result(int req_handle, T_CCI_QUERY_RESULT **query_result, T_CCI_ERROR *err_buf)

Return Value
Error Codes
Example

T_CCI_QUERY_RESULT *qr;

 

cci_execute( … );

res = cci_execute_result(req_h, &qr, &err_buf);

if (res < 0) {

  /* error */

}

else {

  for (i=1 ; i <= res ; i++) {

    result_count = CCI_QUERY_RESULT_RESULT(qr, i);

    stmt_type = CCI_QUERY_RESULT_STMT_TYPE(qr, i);

  }

  cci_query_result_free(qr, res);

}