Skip to content
Snippets Groups Projects
Commit efb0423c authored by Andrew Dunstan's avatar Andrew Dunstan
Browse files

Use the right interpreter for encoding test.

parent ba00ab0b
No related branches found
No related tags found
No related merge requests found
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment