From: Andro <andromede@gmail.com>
To: pgsql-interfaces@postgresql.org
Subject: PQftype() and Oid
Date: Fri, 4 Aug 2006 16:38:20 +0200
Message-ID: <da7021e0608040738l3b0880a1q5a76b838937f8c78@mail.gmail.com> (raw)
Hi,
Oids are in pg_type catalog (server side) and src/include/catalog/pg_type.h
(hard-wired).
But what should we compare the Oid returned by PQftype() with?
Let's say I want to check if column 1 is a VARCHAR, do I have to
if (PQftype(res,1) == 1043)
...;
?
Isn't there a kind of enum which we could rely on to find out types? What if
Oids change in pg_type.h?
Thanks
Charles
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: andromede@gmail.com
Subject: Re: PQftype() and Oid
In-Reply-To: <da7021e0608040738l3b0880a1q5a76b838937f8c78@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox