Re: plperl.c patch to correctly support bytea inputs and output to functions and triggers. - Mailing list pgsql-bugs

From Tom Lane
Subject Re: plperl.c patch to correctly support bytea inputs and output to functions and triggers.
Date
Msg-id 13060.1177905961@sss.pgh.pa.us
Whole thread Raw
In response to Re: plperl.c patch to correctly support bytea inputs and output to functions and triggers.  (Theo Schlossnagle <jesus@omniti.com>)
Responses Re: plperl.c patch to correctly support bytea inputs and output to functions and triggers.
List 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 by date:

Previous
From: Theo Schlossnagle
Date:
Subject: Re: plperl.c patch to correctly support bytea inputs and output to functions and triggers.
Next
From: Magnus Hagander
Date:
Subject: Re: BUG #3059: psql to 'postgres' shortcut