> Hi !
> I'd like to get my request results in a record set as a C
> structure using libpq.
> Is it possible or do I have to use ECPG only ?
> How PGresult pointer stores the results ?
> Actually I can convert all my result fields from PGresult to
> my C structure but I think also it is a little bit stupid if
> PGresult does its own conversion before ... no ?
You are not suppsed to know how PGresult stores the data, you are only
permitted to access it through the accessor functions. This is so it's
possible to change the underlying implementation without breaking your
You *can* access the data directly, all the rqeuired structs are in the
include files (but not in the libpq-fe.h file - you need the full
includes). I would stronly advise you not to, though.
pgsql-hackers-win32 by date
|Next:||From: Michael GUIARD||Date: 2005-08-01 08:41:44|
|Subject: Re: retreive record set|
|Previous:||From: Michael GUIARD||Date: 2005-08-01 07:38:25|
|Subject: retreive record set|