Re: Getting oid with libpq

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Getting oid with libpq
Дата
Msg-id 21817.1123768644@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Getting oid with libpq  (jtv@xs4all.nl)
Ответы Re: Getting oid with libpq
Список pgsql-interfaces
jtv@xs4all.nl writes:
>   const char *OldLocale = setlocale(LC_NUMERIC, "C");
> Then run the pointer returned by PQgetValue() through atol() to get a
> numeric value, and finally restore the previous locale with
>   setlocale(LC_NUMERIC, OldLocale);

Uh ... there is nothing at all locale-sensitive about atol, nor strtoul
which is what you really want to use for an OID.
        regards, tom lane


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

Предыдущее
От: jtv@xs4all.nl
Дата:
Сообщение: Re: Getting oid with libpq
Следующее
От: "Johan C. de Koning"
Дата:
Сообщение: Re: Getting oid with libpq