pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedRe: I hope I'm missing something...
3+ messages / 3 participants
[nested] [flat]
* Re: I hope I'm missing something...
@ 1970-01-01 00:00 Christoph Haller <ch@rodos.fzk.de>
parent: Peter Eisentraut <peter_e@gmx.net>
0 siblings, 0 replies; 3+ messages in thread
From: Christoph Haller @ 1970-01-01 00:00 UTC (permalink / raw)
To: bplummer@hotmail.com; +Cc: pgsql-interfaces
>
> brian plummer wrote:
> > I've just spent some time looking at the libpq API and it appears
> > that I cannot process the actual field data from a select statement
> > in the native type of that field. Is this correct?
>
> Yes. You are more likely to be happy with ECPG or ODBC, which provide
> that functionality.
>
>
It can give you the native type, but only if you're using binary cursors.
Regards, Christoph
^ permalink raw reply [nested|flat] 3+ messages in thread
* I hope I'm missing something...
@ 2004-04-23 23:58 brian plummer <bplummer@hotmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: brian plummer @ 2004-04-23 23:58 UTC (permalink / raw)
To: pgsql-interfaces
I've just spent some time looking at the libpq API and it appears that I
cannot process the actual field data from a select statement in the native
type of that field. Is this correct? For example, if I have an IEEE
floating point number stored in a table and I exec a select to get this
field, my expectation is that when I process my results I will be able to
get a pointer to an IEEE floating point number in my libpq program. It does
not appear that this functionality exists in libpq. Could someone confirm
this. The analogous function in Sybase dblibrary would be dbdata(...). If
I'm wrong, and it is possible to do what I need to do, please point me in
the right direction.
Thanks for your time,
Brian
_________________________________________________________________
Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage!
http://join.msn.com/?pgmarket=en-us&page=hotmail/es2&ST=1/go/onm00200362ave/direct/01/
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: I hope I'm missing something...
@ 2004-04-25 02:45 Peter Eisentraut <peter_e@gmx.net>
parent: brian plummer <bplummer@hotmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Peter Eisentraut @ 2004-04-25 02:45 UTC (permalink / raw)
To: brian plummer <bplummer@hotmail.com>; pgsql-interfaces
brian plummer wrote:
> I've just spent some time looking at the libpq API and it appears
> that I cannot process the actual field data from a select statement
> in the native type of that field. Is this correct?
Yes. You are more likely to be happy with ECPG or ODBC, which provide
that functionality.
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2004-04-25 02:45 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-04-23 23:58 I hope I'm missing something... brian plummer <bplummer@hotmail.com>
2004-04-25 02:45 ` Peter Eisentraut <peter_e@gmx.net>
1970-01-01 00:00 ` Christoph Haller <ch@rodos.fzk.de>
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