Skip to content

Commit 1b3a437

Browse files
committed
Add regression test files inadvertantly omitted in plperl.on_plperl{u}_init patch
1 parent 3ad7dbb commit 1b3a437

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-- test plperl.on_plperl_init errors are fatal
2+
3+
-- Avoid need for custom_variable_classes = 'plperl'
4+
LOAD 'plperl';
5+
6+
SET SESSION plperl.on_plperl_init = ' eval "1+1" ';
7+
8+
SHOW plperl.on_plperl_init;
9+
10+
DO $$ warn 42 $$ language plperl;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy