]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix pl/perl test case so it will still work under Perl 5.36.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 1 Jun 2022 20:15:47 +0000 (16:15 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 1 Jun 2022 20:15:47 +0000 (16:15 -0400)
commitc08538734522f27646dd5fe68d61e16a59477f6e
tree5f3e508b411a5aa92a59e5746c6d80ec553aa121
parent9ae467db92ce8e26b0c3d37f79926f0174b70864
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