pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Meskes <meskes@postgreSQL.org>
To: S.F. Lee <sflee_tw@yahoo.com>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] manipulate array wiht ecpg
Date: Wed, 29 Dec 1999 13:34:01 +0100
Message-ID: <19991229133401.B324@fam-meskes.de> (raw)
In-Reply-To: <19991229064052.14930.rocketmail@web221.mail.yahoo.com>
References: <19991229064052.14930.rocketmail@web221.mail.yahoo.com>

On Tue, Dec 28, 1999 at 10:40:52PM -0800, S.F. Lee wrote:
> After getting temp from exec sql select ....., I use
> strtol() to convert temp.a into a integer array, and 
> it works! I now have another problem that is I can get

Still I would prefer a better handling by ecpg. :-)

> the tuples by sqlca.sqlerrd[2], but how can I get the
> type of each field that has been selected? In libpq++
> FieldType(n) can get the type of field, how about in 
> ecpg?

I do not know a way other than querying the data dictionary. What does the
standard say? Should we return such info?

What do other RDBMS do in this scenario?

Is there a way I can give this info back anyway. Right now I cannot imagine
one since we give back the whole tuple at once. Where shall we store these
per attribute infos?

Michael
-- 
Michael Meskes                         | Go SF 49ers!
Th.-Heuss-Str. 61, D-41812 Erkelenz    | Go Rhein Fire!
Tel.: (+49) 2431/72651                 | Use Debian GNU/Linux!
Email: Michael@Fam-Meskes.De           | Use PostgreSQL!



view thread (5+ messages)

Message-ID: <19991229133401.B324@fam-meskes.de>
Permalink:  ../19991229133401.B324@fam-meskes.de/
Also on:    postgresql.org/message-id/19991229133401.B324@fam-meskes.de

 · 

reply

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: meskes@postgreSQL.org, sflee_tw@yahoo.com
  Subject: Re: [INTERFACES] manipulate array wiht ecpg
  In-Reply-To: <19991229133401.B324@fam-meskes.de>

* 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