Commit efb0423c authored by Andrew Dunstan's avatar Andrew Dunstan

Use the right interpreter for encoding test.

parent ba00ab0b
...@@ -656,7 +656,7 @@ CONTEXT: PL/Perl anonymous code block ...@@ -656,7 +656,7 @@ CONTEXT: PL/Perl anonymous code block
-- --
CREATE OR REPLACE FUNCTION perl_zerob() RETURNS TEXT AS $$ CREATE OR REPLACE FUNCTION perl_zerob() RETURNS TEXT AS $$
return "abcd\0efg"; return "abcd\0efg";
$$ LANGUAGE plperlu; $$ LANGUAGE plperl;
SELECT perl_zerob(); SELECT perl_zerob();
ERROR: invalid byte sequence for encoding "UTF8": 0x00 ERROR: invalid byte sequence for encoding "UTF8": 0x00
CONTEXT: PL/Perl function "perl_zerob" CONTEXT: PL/Perl function "perl_zerob"
......
...@@ -429,7 +429,7 @@ DO $do$ use warnings FATAL => qw(void) ; my @y; my $x = sort @y; 1; $do$ LANGUAG ...@@ -429,7 +429,7 @@ DO $do$ use warnings FATAL => qw(void) ; my @y; my $x = sort @y; 1; $do$ LANGUAG
-- --
CREATE OR REPLACE FUNCTION perl_zerob() RETURNS TEXT AS $$ CREATE OR REPLACE FUNCTION perl_zerob() RETURNS TEXT AS $$
return "abcd\0efg"; return "abcd\0efg";
$$ LANGUAGE plperlu; $$ LANGUAGE plperl;
SELECT perl_zerob(); SELECT perl_zerob();
-- make sure functions marked as VOID without an explicit return work -- make sure functions marked as VOID without an explicit return work
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment