Re: retreive record set

"Magnus Hagander" <[email protected]> Sat, 6 Aug 2005 19:29:11 +0200
Newsgroups gmane.comp.db.postgresql.devel.win32
Message-ID <[email protected]>
> Hi Magnus,
>=20
> I understood that I am not supposed to know how PGresult=20
> stores the data, but I do not know how to fill my structure=20
> directly rather than to fill it field by field.
> I saw ecpg gives methods to do this (with descriptors), but I=20
> do not understand all about it, and I think it is too=20
> complicated for my small needs. Further, I do not want to=20
> change the implementation of postgreqsl libpq.
>=20
> So if I have no other choice than convert all result fields=20
> to fill my structure I will do this ...
>=20
> what is your advices about this ?

AFAIK there is no way in libpq to bind directly to variables. You'll
have to do a loop with pqgetvalue() to fill your struct.

//Magnus

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match