From: Glenn Sullivan <glenn.sullivan@nmr.varian.com>
To: pgsql-sql@hub.org
Subject: Getting datatype before SELECT
Date: Tue, 29 Sep 1998 11:05:34 -0600
Message-ID: <3611135E.491D2598@nmr.varian.com> (raw)
References: <199809230300.XAA12144@hub.org>
In my C code which communicates with the Postgres database,
I have the need to determine the datatype of a column, before
I have done a SELECT command. I have the name of the column,
but I cannot seem to figure out how to get the datatype information
until after I have done a SELECT. Then I can call PQfnumber() and
PQftype() to get the type. Does anyone know how to do this?
Thanks,
Glenn
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: glenn.sullivan@nmr.varian.com, pgsql-sql@hub.org
Subject: Re: Getting datatype before SELECT
In-Reply-To: <3611135E.491D2598@nmr.varian.com>
References: <199809230300.XAA12144@hub.org> <3611135E.491D2598@nmr.varian.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