OSDN Git Service

Further plperl cleanup: be more paranoid about checking the type of
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 23 Nov 2004 00:21:24 +0000 (00:21 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 23 Nov 2004 00:21:24 +0000 (00:21 +0000)
commit28e9b26f4dfc5f3521c96c9de6758fa3240307d1
tree29b8b7827accc3851c4f676044fbfa6b923144c9
parent25fcfdf6f488de52e7aeb948f6eab76554194e3f
Further plperl cleanup: be more paranoid about checking the type of
data returned from Perl.  Consolidate multiple bits of code to convert
a Perl hash to a tuple, and drive the conversion off the keys present
in the hash rather than the tuple column names, so we detect error if
the hash contains keys it shouldn't.  (This means keys not in the hash
will silently default to NULL, which seems ok to me.)  Fix a bunch of
reference-count leaks too.
src/pl/plperl/plperl.c
src/pl/plperl/test/test.expected
src/pl/plperl/test/test_queries.sql