PQunescapeBytea Question

Поиск
Список
Период
Сортировка
От Jerry LeVan
Тема PQunescapeBytea Question
Дата
Msg-id 9BFA4BA8-E6EE-11D8-8CDC-000393779D9C@eku.edu
обсуждение исходный текст
Ответы Re: PQunescapeBytea Question  (Kris Jurka <books@ejurka.com>)
Список pgsql-general
Is there any chance that PQunescapeBytea will
always have a \000 at the end of the
unescaped buffer?

unescvalue = PQgetvalue(lastResult, row, fieldNum);
value = PQunescapeBytea(unescvalue, &size);

ie  is "value" a C string or do I have to make
another copy so I can append a \000 byte?

Sigh, I expect the latter...

Jerry


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PG over NFS tips
Следующее
От: Cott Lang
Дата:
Сообщение: Re: PG over NFS tips