summaryrefslogtreecommitdiff
path: root/src/pl/plperl/sql/plperl_init.sql
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2013-06-03 14:19:36 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2013-06-03 14:19:36 -0400
commit89bd9fe5fde46af8e2d93d2cb78a8142ac7caf4d (patch)
treeca96ecc940d240e4e8f692996f078300cab3d7af /src/pl/plperl/sql/plperl_init.sql
parent1e5588cfd966ef5f4a1e31625b7079cff6d91a5a (diff)
Add semicolons to eval'd strings to hide a minor Perl behavioral change.
"eval q{foo}" used to complain that the error was on line 2 of the eval'd string, because eval internally tacked on "\n;" so that the end of the erroneous command was indeed on line 2. But as of Perl 5.18 it more sanely says that the error is on line 1. To avoid Perl-version-dependent regression test results, use "eval q{foo;}" instead in the two places where this matters. Per buildfarm. Since people might try to use newer Perl versions with older PG releases, back-patch as far as 9.0 where these test cases were added.
Diffstat (limited to 'src/pl/plperl/sql/plperl_init.sql')
-rw-r--r--src/pl/plperl/sql/plperl_init.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pl/plperl/sql/plperl_init.sql b/src/pl/plperl/sql/plperl_init.sql
index f6a32b9bae4..50288cb4156 100644
--- a/src/pl/plperl/sql/plperl_init.sql
+++ b/src/pl/plperl/sql/plperl_init.sql
@@ -3,7 +3,7 @@
-- Avoid need for custom_variable_classes = 'plperl'
LOAD 'plperl';
-SET SESSION plperl.on_plperl_init = ' system("/nonesuch") ';
+SET SESSION plperl.on_plperl_init = ' system("/nonesuch"); ';
SHOW plperl.on_plperl_init;