-----BEGIN PGP SIGNED MESSAGE-----
> First off, a question: why don't you just select the field you want,
> so you know its index in the result set? That'll probably transport
> less data, save you that PQfnumber() call, and make your code shorter
> and more readable.
I'm new to libpq programming, so...
> The pointer you're getting is a pointer-to-char, i.e. a string.
> Unless you explicitly enabled the "binary tuples" option, what you're
> getting is exactly that: a string. But instead of parsing the string,
> you're casting its base pointer to pointer-to-int!
Thank you fo answer, it realy helped me.
- -Roman Bogorodskiy [Novel]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)
-----END PGP SIGNATURE-----
In response to
pgsql-interfaces by date
|Next:||From: Michael Meskes||Date: 2003-09-24 07:25:42|
|Subject: Re: ECPG insert into table name as a variable|
|Previous:||From: Igor Shevchenko||Date: 2003-09-23 23:19:46|
|Subject: Re: libpq: how to get a sequence of partial PGresult-s|