Fix pl/perl test case so it will still work under Perl 5.36.
authorTom Lane <[email protected]>
Wed, 1 Jun 2022 20:15:47 +0000 (16:15 -0400)
committerTom Lane <[email protected]>
Wed, 1 Jun 2022 20:15:47 +0000 (16:15 -0400)
commitd5e1d5ed90d98335978a16e5210ff2209d9729b0
treefc226f78b953e9c2f7f7cd5c1891ced8f60602e1
parent2114910cae6ae3c623cd9b02ef79270cd5b0134e
Fix pl/perl test case so it will still work under Perl 5.36.

Perl 5.36 has reclassified the warning condition that this test
case used, so that the expected error fails to appear.  Tweak
the test so it instead exercises a case that's handled the same
way in all Perl versions of interest.

This appears to meet our standards for back-patching into
out-of-support branches: it changes no user-visible behavior
but enables testing of old branches with newer tools.
Hence, back-patch as far as 9.2.

Dagfinn Ilmari Mannsåker, per report from Jitka Plesníková.

Discussion: https://postgr.es/m/564579.1654093326@sss.pgh.pa.us
src/pl/plperl/expected/plperl.out
src/pl/plperl/sql/plperl.sql