postgresql/contrib/jsonb_plperl
Tom Lane df521ab795 Fix handling of "undef" in contrib/jsonb_plperl.
Perl has multiple internal representations of "undef", and just
testing for SvTYPE(x) == SVt_NULL doesn't recognize all of them,
leading to "cannot transform this Perl type to jsonb" errors.
Use the approved test SvOK() instead.

Report and patch by Ivan Panchenko.  Back-patch to v11 where
this module was added.

Discussion: https://postgr.es/m/1564783533.324795401@f193.i.mail.ru
2019-08-04 14:05:35 -04:00
..
expected Fix handling of "undef" in contrib/jsonb_plperl. 2019-08-04 14:05:35 -04:00
sql Fix handling of "undef" in contrib/jsonb_plperl. 2019-08-04 14:05:35 -04:00
.gitignore Transforms for jsonb to PL/Perl 2018-04-03 09:47:18 -04:00
Makefile Still further rethinking of build changes for macOS Mojave. 2018-10-18 14:55:23 -04:00
jsonb_plperl--1.0.sql Transforms for jsonb to PL/Perl 2018-04-03 09:47:18 -04:00
jsonb_plperl.c Fix handling of "undef" in contrib/jsonb_plperl. 2019-08-04 14:05:35 -04:00
jsonb_plperl.control Transforms for jsonb to PL/Perl 2018-04-03 09:47:18 -04:00
jsonb_plperlu--1.0.sql Fix clashing function names between jsonb_plperl and jsonb_plperlu 2018-04-11 10:34:53 -04:00
jsonb_plperlu.control Transforms for jsonb to PL/Perl 2018-04-03 09:47:18 -04:00