I implemented all that you said and it works well,
But, i need to know how to get the metadata when there is no any row.
I execute the follow sentence:
select * from mytable where 1=0; //it doesnt return any row.
So, i just need to know the metadata.
With your code works well with data, but nothing happen when the sentece doesnt return anything.
Because i should know the metadata even theres no data retreiving.
Thank you so much.