From: | "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com> |
---|---|
To: | clarkhorse(at)clarktx(dot)com |
Cc: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | Re: Newbie problem with from database in C |
Date: | 2008-05-20 13:36:03 |
Message-ID: | 36e682920805200636j43fc70a6m734d3ce18ad08f68@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
On Tue, May 20, 2008 at 12:43 AM, <clarkhorse(at)clarktx(dot)com> wrote:
>>IIRC, you need to convert from network byte order:
>>
>>idno = ntohl(*((int32 *) PQgetvalue(result, row, 0)));
>>
> Thanks it led me in the right direction.
> I was getting confused with all of the pointers. I finally broke it down.
Oh yeah, I didn't spend enough time looking at whether you had defined
it as a pointer or not. My bad!
> Thanks again,
No problem.
--
Jonah H. Harris, Sr. Software Architect | phone: 732.331.1324
EnterpriseDB Corporation | fax: 732.331.1301
499 Thornall Street, 2nd Floor | jonah(dot)harris(at)enterprisedb(dot)com
Edison, NJ 08837 | http://www.enterprisedb.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Edward Amsden | 2008-06-10 17:23:14 | pqlib large object error |
Previous Message | clarkhorse | 2008-05-20 04:43:53 | Re: Newbie problem with from database in C |