]> granicus.if.org Git - postgresql/commit
Fix portability problem in Catalog.pm.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Mar 2017 01:45:52 +0000 (20:45 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Mar 2017 01:45:59 +0000 (20:45 -0500)
commit15bb93e28e49fdf4f28d509c07d1527886acb3e2
tree77de68105536e56e8d3fbfab5e5416e5006c680b
parent395bfaae8e786eb17fc9dd79e4636f97c9d9b820
Fix portability problem in Catalog.pm.

Commit 7666e73a2 introduced a dependency on filehandles' input_line_number
method, but apparently that's a Perl neologism.  Use $. instead, which
works at least back to Perl 5.10, and hopefully back to 5.8.

Jeff Janes

Discussion: https://postgr.es/m/CAMkU=1wuQW=xVfu-14A4VCvxO0ohkD3m9vk6HOj_dprQoKNAQw@mail.gmail.com
src/backend/catalog/Catalog.pm