Determining C type for a given OID

From: Graham Wilson <grahamwilsonca(at)yahoo(dot)ca>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Determining C type for a given OID
Date: 2002-11-29 23:18:32
Message-ID: 20021129231832.61196.qmail@web14403.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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! Yahoo! Canada Personals

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Bruce Momjian 2002-11-29 23:34:07 Re: Determining C type for a given OID
Previous Message Mitch Vincent 2002-11-29 19:11:54 Re: libpq / crypt / md5 question