We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ad7dbb commit 1b3a437Copy full SHA for 1b3a437
src/pl/plperl/expected/plperl_init.out
@@ -0,0 +1,14 @@
1
+-- test plperl.on_plperl_init errors are fatal
2
+-- Avoid need for custom_variable_classes = 'plperl'
3
+LOAD 'plperl';
4
+SET SESSION plperl.on_plperl_init = ' eval "1+1" ';
5
+SHOW plperl.on_plperl_init;
6
+ plperl.on_plperl_init
7
+-----------------------
8
+ eval "1+1"
9
+(1 row)
10
+
11
+DO $$ warn 42 $$ language plperl;
12
+ERROR: while executing plperl.on_plperl_init
13
+DETAIL: 'eval "string"' trapped by operation mask at line 2.
14
+CONTEXT: PL/Perl anonymous code block
src/pl/plperl/sql/plperl_init.sql
@@ -0,0 +1,10 @@
0 commit comments