Re: Plperl functions not re-entrant, wrong results

From: Kenneth Downs <ken(at)secdat(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Plperl functions not re-entrant, wrong results
Date: 2007-04-30 16:12:11
Message-ID: 4636155B.9050905@secdat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Tom Lane wrote:
> Kenneth Downs <ken(at)secdat(dot)com> writes:
>
>> Here is a test case to show that plperl functions are not re-entrant.
>>
>
> I'm very bad in perl, but I think you need to declare all your variables
> with "my" to make them local instead of global.
>
> regards, tom lane
>

Thanks Tom, that did it! I had one "my" in there, but there was another
spot where one was needed.

--
Kenneth Downs
Secure Data Software, Inc.
www.secdat.com www.andromeda-project.org
631-379-7200 Fax: 631-689-0527

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David Fetter 2007-04-30 16:46:43 Re: Plperl functions not re-entrant, wrong results
Previous Message Theo Schlossnagle 2007-04-30 16:05:05 Re: plperl.c patch to correctly support bytea inputs and output to functions and triggers.