Re: Newbie problem with from database in C

Поиск
Список
Период
Сортировка
От Jonah H. Harris
Тема Re: Newbie problem with from database in C
Дата
Msg-id 36e682920805200636j43fc70a6m734d3ce18ad08f68@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Newbie problem with from database in C  (clarkhorse@clarktx.com)
Список pgsql-interfaces
On Tue, May 20, 2008 at 12:43 AM,  <clarkhorse@clarktx.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.harris@enterprisedb.com
Edison, NJ 08837 | http://www.enterprisedb.com/


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: clarkhorse@clarktx.com
Дата:
Сообщение: Re: Newbie problem with from database in C
Следующее
От: Edward Amsden
Дата:
Сообщение: pqlib large object error