Thread: Converting returned string to C type

Converting returned string to C type

From
Graham Wilson
Date:
Hi all,

I'm using the libpq `PQgetvalue` function to get
specific results from my datase.  Many of these
results are numeric types.  Is there an internal
function in libpq that will convert the returned
string to an appropriate C-type based on the oid
values in src/include/catalog/pg_type.h?

Many thanks.


______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca