The CCI_QUERY_RESULT_STMT_TYPE macro gets the statement type of the cci_execute_batch query. It does not check whether the specified argument, query_result, is NULL and whether index is valid.
#define CCI_QUERY_RESULT_STMT_TYPE(T_CCI_QUERY_RESULT* query_result, int index)