The use of this function saves the overhead of executing a "select dbinfo('sqlca.sqlerrdx')" query, as it retrieves the values that were saved by the ifx driver at the appropriate moment.
Returns a pseudo-row (associative array) with sqlca.sqlerrd[0]... sqlca.sqlerrd[5] after the query associated with result_id.