PQftype() and Oid - Mailing list pgsql-interfaces

From Andro
Subject PQftype() and Oid
Date
Msg-id da7021e0608040738l3b0880a1q5a76b838937f8c78@mail.gmail.com
Whole thread Raw
Responses Re: PQftype() and Oid
List pgsql-interfaces
Hi,<br /><br />Oids are in pg_type catalog (server side) and src/include/catalog/pg_type.h (hard-wired).<br /><br />But
whatshould we compare the Oid returned by PQftype() with?<br />Let's say I want to check if column 1 is a VARCHAR, do I
haveto <br /><br />if (PQftype(res,1) == 1043)<br /> ...;<br /><br />?<br />Isn't there a kind of enum which we could
relyon to find out types? What if Oids change in pg_type.h?<br /><br />Thanks<br /><br />Charles<br /><br /> 

pgsql-interfaces by date:

Previous
From: andy rost
Date:
Subject: Re: Using FETCH ALL with descriptor areas
Next
From: Volkan YAZICI
Date:
Subject: Re: PQftype() and Oid