pgsql: Add semicolons to eval'd strings to hide a minor Perl behavioral
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | pgsql: Add semicolons to eval'd strings to hide a minor Perl behavioral |
| Дата | |
| Msg-id | E1UjZMW-0002ki-PO@gemulon.postgresql.org обсуждение исходный текст |
| Список | pgsql-committers |
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.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/035a5e1e8c346efe25df6be4627b5f24cc3736b1
Modified Files
--------------
src/pl/plperl/expected/plperl.out | 4 ++--
src/pl/plperl/expected/plperl_init.out | 10 +++++-----
src/pl/plperl/sql/plperl.sql | 2 +-
src/pl/plperl/sql/plperl_init.sql | 2 +-
4 files changed, 9 insertions(+), 9 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера