Plperl trigger variables no longer global

From: Greg Sabino Mullane <greg(at)endpoint(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Plperl trigger variables no longer global
Date: 2011-05-03 23:40:34
Message-ID: 20110503234033.GE2701@core.home
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

This works in 9.0 but not in git/9.1 beta:

CREATE FUNCTION wheredidmytdgo()
RETURNS TRIGGER
LANGUAGE plperlu
AS
$bc$
use strict; use warnings;
my $new = $_TD->{new};
return;
$bc$;

The error is:

ERROR: Global symbol "$_TD" requires explicit package name at line 3.
CONTEXT: compilation of PL/Perl function "wheredidmytdgo"

--
Greg Sabino Mullane greg(at)endpoint(dot)com
End Point Corporation
PGP Key: 0x14964AC8

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message hubert depesz lubaczewski 2011-05-04 06:40:03 Re: BUG #6003: Cannot have a constraint foreign key on master class with inheritance
Previous Message David carlos Manuelda 2011-05-03 22:12:53 BUG #6003: Cannot have a constraint foreign key on master class with inheritance