mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
Use the right interpreter for encoding test.
This commit is contained in:
parent
ba00ab0b11
commit
efb0423cc7
@ -656,7 +656,7 @@ CONTEXT: PL/Perl anonymous code block
|
||||
--
|
||||
CREATE OR REPLACE FUNCTION perl_zerob() RETURNS TEXT AS $$
|
||||
return "abcd\0efg";
|
||||
$$ LANGUAGE plperlu;
|
||||
$$ LANGUAGE plperl;
|
||||
SELECT perl_zerob();
|
||||
ERROR: invalid byte sequence for encoding "UTF8": 0x00
|
||||
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
|
||||
--
|
||||
CREATE OR REPLACE FUNCTION perl_zerob() RETURNS TEXT AS $$
|
||||
return "abcd\0efg";
|
||||
$$ LANGUAGE plperlu;
|
||||
$$ LANGUAGE plperl;
|
||||
SELECT perl_zerob();
|
||||
|
||||
-- make sure functions marked as VOID without an explicit return work
|
||||
|
Loading…
x
Reference in New Issue
Block a user