getDatatypesOfResult function

Get the datatypes of the result variables