Re: plperl exception catching

From: Bricklen Anderson <banderson(at)presinet(dot)com>
To: Marc Evans <Marc(at)SoftwareHackery(dot)Com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: plperl exception catching
Date: 2006-12-13 20:51:49
Message-ID: 458067E5.1020106@presinet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Marc Evans wrote:
> OK, I must be missing something obvious:
>
> c3i=> CREATE OR REPLACE FUNCTION foo_trigger() RETURNS TRIGGER AS $$
> c3i$> eval { spi_exec_query('INSERT INTO FOO_BAR VALUES(1)'); } ||
> c3i$> spi_exec_query('SELECT 1 as foo');
> c3i$> $$ LANGUAGE plperl;
> ERROR: creation of Perl function failed: 'eval "string"' trapped by
> operation mask at line 2.
>

Try as plperlu

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tony Caduto 2006-12-13 21:02:53 Re: grant all privileges on database
Previous Message Marc Evans 2006-12-13 20:43:17 Re: plperl exception catching