Get column name and type using the result set