PQescapeString handling of \0

Поиск
Список
Период
Сортировка
От Igor Shevchenko
Тема PQescapeString handling of \0
Дата
Msg-id 200309291949.26188.igor@carcass.ath.cx
обсуждение исходный текст
Ответы Re: PQescapeString handling of \0  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: PQescapeString handling of \0  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-interfaces
Hi.

Here's a patch which makes PQescapeString stop escaping when \0 is seen.
Currently. if somebody passes a string with embedded \0 (for example, perl 
allows \0s in it's scalars and DBD::Pg does no checks), PQescapeString will 
return an invalid (bigger) length for \0-terminated string.

-- 
Best regards,
Igor Shevchenko

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

Предыдущее
От: David Schweikert
Дата:
Сообщение: ANNOUNCE: Gedafe 1.2.0
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PQescapeString handling of \0