Text datatype mapping in resultset and added exception for subqueries in...

... from clause