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

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

pgsql-bugs by date

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

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