Commit 1b3a437a authored by Andrew Dunstan's avatar Andrew Dunstan

Add regression test files inadvertantly omitted in plperl.on_plperl{u}_init patch

parent 3ad7dbb1
-- test plperl.on_plperl_init errors are fatal
-- Avoid need for custom_variable_classes = 'plperl'
LOAD 'plperl';
SET SESSION plperl.on_plperl_init = ' eval "1+1" ';
SHOW plperl.on_plperl_init;
plperl.on_plperl_init
-----------------------
eval "1+1"
(1 row)
DO $$ warn 42 $$ language plperl;
ERROR: while executing plperl.on_plperl_init
DETAIL: 'eval "string"' trapped by operation mask at line 2.
CONTEXT: PL/Perl anonymous code block
-- test plperl.on_plperl_init errors are fatal
-- Avoid need for custom_variable_classes = 'plperl'
LOAD 'plperl';
SET SESSION plperl.on_plperl_init = ' eval "1+1" ';
SHOW plperl.on_plperl_init;
DO $$ warn 42 $$ language plperl;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment