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

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

pgsql-bugs by date

Next:From: David FetterDate: 2007-04-30 16:46:43
Subject: Re: Plperl functions not re-entrant, wrong results
Previous:From: Theo SchlossnagleDate: 2007-04-30 16:05:05
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