Re: PQgetlength vs. octet_length()

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: PQgetlength vs. octet_length()
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C203937ED0@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на Re: PQgetlength vs. octet_length()  (Greg Stark <gsstark@mit.edu>)
Список pgsql-hackers
Greg Stark wrote:
> If you use binary encoding then you don't have to deal with that.
> Though I seem to recall there is still a gotcha you have to worry
> about if there are nul bytes in your datum. I don't recall exactly
> what that meant you had to do though.

As far as I know, it only means that you shouldn't use strcpy, strlen
and friends on a binary string.

Yours,
Laurenz Albe


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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: [BUGS] BUG #4961: pg_standby.exe crashes with no args
Следующее
От: KaiGai Kohei
Дата:
Сообщение: Why ACL_EXECUTE is checked on FindConversion()?