This function returns the number of columns in the opened cursor
Number of the cursor column, or -1 if an error occurs