Hi,
I am facing one problem while using the C++ classes provided by the
Postgres to connect to the backend database and execute query.
I am using PgDatabase class to connect to the backend postgres database
and execute query. Now, when I am using the following method of
PgDatabase class, to access the tuples and fields, its always providing
me return values as char *.
const char* GetValue(int tup_num, int field_num)
My problem is - for my application, I need to have the values back in
their proper format, that means if the datatyoe of one field is integer,
I want to get it back as an integer type and not as a string.
Is there any way in Postgres, to do that ?
Thanks and Regards,
Shamik