mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
Remove less-portable-than-believed test case.
In commit 331b2369c
I added a test to see what jsonb_plperl would do
with a qr{} result. Turns out the answer is Perl version dependent.
That fact doesn't bother me particularly, but coping with multiple
result possibilities is way more work than this test seems worth.
So remove it again.
Discussion: https://postgr.es/m/E1f3MMJ-0006bf-B0@gemulon.postgresql.org
This commit is contained in:
@ -34,18 +34,6 @@ $$;
|
||||
SELECT testSVToJsonb();
|
||||
|
||||
|
||||
-- unsupported (for now)
|
||||
CREATE FUNCTION testRegexpToJsonb() RETURNS jsonb
|
||||
LANGUAGE plperlu
|
||||
TRANSFORM FOR TYPE jsonb
|
||||
AS $$
|
||||
my $a = qr/foo/;
|
||||
return ($a);
|
||||
$$;
|
||||
|
||||
SELECT testRegexpToJsonb();
|
||||
|
||||
|
||||
-- this revealed a bug in the original implementation
|
||||
CREATE FUNCTION testRegexpResultToJsonb() RETURNS jsonb
|
||||
LANGUAGE plperlu
|
||||
|
Reference in New Issue
Block a user