Re: plperl.c patch to correctly support bytea inputs and output to functions and triggers.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: plperl.c patch to correctly support bytea inputs and output to functions and triggers.
Дата
Msg-id 13060.1177905961@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: plperl.c patch to correctly support bytea inputs and output to functions and triggers.  (Theo Schlossnagle <jesus@omniti.com>)
Ответы Re: plperl.c patch to correctly support bytea inputs and output to functions and triggers.  (Theo Schlossnagle <jesus@omniti.com>)
Список pgsql-bugs
Theo Schlossnagle <jesus@omniti.com> writes:
> If I return a bytes from perl that looks like: "hello\0there",
> postgres sees a 5 byte string "hello".

You have failed to pay any attention to the escaping rules for bytea if
you do that.

            regards, tom lane

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

Предыдущее
От: Theo Schlossnagle
Дата:
Сообщение: Re: plperl.c patch to correctly support bytea inputs and output to functions and triggers.
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: BUG #3059: psql to 'postgres' shortcut