blob: a4a06e722f87c4119634ff40a6efac5b3008823f (
plain)
1
2
3
4
5
6
7
8
|
--
-- Make sure strings are validated
-- Should fail for all encodings, as nul bytes are never permitted.
--
CREATE OR REPLACE FUNCTION perl_zerob() RETURNS TEXT AS $$
return "abcd\0efg";
$$ LANGUAGE plperl;
SELECT perl_zerob();
|