git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 1538628) | patch
Add semicolons to eval'd strings to hide a minor Perl behavioral change.
Mon, 3 Jun 2013 18:19:26 +0000 (14:19 -0400)
Mon, 3 Jun 2013 18:19:26 +0000 (14:19 -0400)
commit 035a5e1e8c346efe25df6be4627b5f24cc3736b1
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.
src/pl/plperl/expected/plperl.out diff | blob | blame | history
src/pl/plperl/expected/plperl_init.out diff | blob | blame | history
src/pl/plperl/sql/plperl.sql diff | blob | blame | history
src/pl/plperl/sql/plperl_init.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /