Re: Newbie problem with from database in C

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


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

Предыдущее
От: clarkhorse@clarktx.com
Дата:
Сообщение: Newbie problem with from database in C
Следующее
От: Dennis Wang
Дата:
Сообщение: Re: pg_subtrans directory grows over 1 GB, is there a way to control it?