fixed bug with get_affected_rows() and user defined types