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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Theo Schlossnagle <jesus(at)omniti(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: plperl.c patch to correctly support bytea inputs and output to functions and triggers.
Date: 2007-04-30 04:06:01
Message-ID: 13060.1177905961@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Theo Schlossnagle <jesus(at)omniti(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Magnus Hagander 2007-04-30 10:26:11 Re: BUG #3059: psql to 'postgres' shortcut
Previous Message Theo Schlossnagle 2007-04-28 20:31:46 Re: plperl.c patch to correctly support bytea inputs and output to functions and triggers.