summaryrefslogtreecommitdiffstats
path: root/src/pl/plperl/expected/plperl_lc_1.out
blob: 022c3e2de795c229ec91ec425d3f4ec599a45758 (plain)
1
2
3
4
5
6
7
8
9
10
--
-- 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();
ERROR:  invalid byte sequence for encoding "SQL_ASCII": 0x00
CONTEXT:  PL/Perl function "perl_zerob"