OSDN Git Service

Check values passed back from PLPerl to the database, via function return,
authorAndrew Dunstan <andrew@dunslane.net>
Mon, 4 Jan 2010 20:29:59 +0000 (20:29 +0000)
committerAndrew Dunstan <andrew@dunslane.net>
Mon, 4 Jan 2010 20:29:59 +0000 (20:29 +0000)
commit1c4c741ea93018cc30719e2e24206996018301d4
treeec67c25190c88a1b6985459b0475778f0dd1561e
parent305e85b0983e6e18d38d12a575b60ccb8102f4fe
Check values passed back from PLPerl to the database, via function return,
trigger tuple modification or SPI call, to ensure they are valid in the
server encoding. Along the way, replace uses of SvPV(foo, PL_na)
with SvPV_nolen(foo) as recommended in the perl docs. Bug report from
Hannu Krosing.
src/pl/plperl/plperl.c