Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group