Re: Newbie problem with from database in C
"Jonah H. Harris" <[email protected]>
| Newsgroups | gmane.comp.db.postgresql.interfaces |
|---|---|
| Message-ID | <[email protected]> |
On Sun, May 18, 2008 at 9:13 PM, <[email protected]> wrote: > characters are fine so far. I have placed the code I am using below. > Would appreciate it if someone could tell me what is wrong or provide me > with a reference on how to do this properly. IIRC, you need to convert from network byte order: idno = ntohl(*((int32 *) PQgetvalue(result, row, 0))); -- Jonah H. Harris, Sr. Software Architect | phone: 732.331.1324 EnterpriseDB Corporation | fax: 732.331.1301 499 Thornall Street, 2nd Floor | [email protected] Edison, NJ 08837 | http://www.enterprisedb.com/ -- Sent via pgsql-interfaces mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-interfaces