pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Sabino Mullane <greg@endpoint.com>
To: pgsql-bugs@postgresql.org
Subject: Plperl trigger variables no longer global
Date: Tue, 3 May 2011 19:40:34 -0400
Message-ID: <20110503234033.GE2701@core.home> (raw)

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@endpoint.com
End Point Corporation
PGP Key: 0x14964AC8

view thread (9+ messages)  latest in thread

Message-ID: <20110503234033.GE2701@core.home>
Permalink:  ../20110503234033.GE2701@core.home/
Also on:    postgresql.org/message-id/20110503234033.GE2701@core.home

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: greg@endpoint.com
  Subject: Re: Plperl trigger variables no longer global
  In-Reply-To: <20110503234033.GE2701@core.home>
  References: <20110503234033.GE2701@core.home>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox