mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Add regression test files inadvertantly omitted in plperl.on_plperl{u}_init patch
This commit is contained in:
parent
3ad7dbb1b9
commit
1b3a437a19
14
src/pl/plperl/expected/plperl_init.out
Normal file
14
src/pl/plperl/expected/plperl_init.out
Normal file
@ -0,0 +1,14 @@
|
||||
-- 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
|
10
src/pl/plperl/sql/plperl_init.sql
Normal file
10
src/pl/plperl/sql/plperl_init.sql
Normal file
@ -0,0 +1,10 @@
|
||||
-- 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;
|
Loading…
Reference in New Issue
Block a user