mirror of
https://github.com/postgres/postgres.git
synced 2025-12-08 00:03:14 -05:00
These only pass cleanly on UTF8 and SQL_ASCII encodings, besides the Japanese encoding in which they were originally written, which is clearly not good enough. Since the functionality they test has not ever been tested from PL/Perl, the best answer seems to be to remove the new tests completely. Per buildfarm results and ensuing discussion.
9 lines
231 B
PL/PgSQL
9 lines
231 B
PL/PgSQL
--
|
|
-- 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();
|