Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-interfaces by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group