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

Re: [INTERFACES] manipulate array wiht ecpg

From: Michael Meskes <meskes(at)postgreSQL(dot)org>
To: "S(dot)F(dot) Lee" <sflee_tw(at)yahoo(dot)com>
Cc: pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] manipulate array wiht ecpg
Date: 1999-12-29 12:34:01
Message-ID: 19991229133401.B324@fam-meskes.de (view raw or flat)
Thread:
Lists: pgsql-interfaces
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(at)Fam-Meskes(dot)De           | Use PostgreSQL!

In response to

pgsql-interfaces by date

Next:From: Robert HiltibidalDate: 1999-12-29 15:06:33
Subject: Data Search
Previous:From: S.F. LeeDate: 1999-12-29 06:40:52
Subject: Re: [INTERFACES] manipulate array wiht ecpg

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