The CCI_GET_RESULT_INFO_SCALE macro gets the index -th column's scale of a prepared SELECT statement. It does not check whether the specified argument, res_info, is NULL and whether index is valid.
#define CCI_GET_RESULT_INFO_SCALE(T_CCI_COL_INFO* res_info, int index)