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

2007-04-29 Thread Tom Lane
Theo Schlossnagle <[EMAIL PROTECTED]> 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 ---

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

2007-04-29 Thread Theo Schlossnagle
On Apr 28, 2007, at 1:26 PM, Tom Lane wrote: Theo Schlossnagle <[EMAIL PROTECTED]> writes: I've found a bug with the way plperl/plperlu handles bytea types. It fails to correctly handle bytea binary inputs and outputs. Define "correctly". The proposed patch seems to be "let's handle bytea