mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-18 18:44:06 +08: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:
parent
331b2369c0
commit
eac93e20af
@ -39,17 +39,6 @@ SELECT testSVToJsonb();
|
|||||||
1
|
1
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
-- unsupported (for now)
|
|
||||||
CREATE FUNCTION testRegexpToJsonb() RETURNS jsonb
|
|
||||||
LANGUAGE plperl
|
|
||||||
TRANSFORM FOR TYPE jsonb
|
|
||||||
AS $$
|
|
||||||
my $a = qr/foo/;
|
|
||||||
return ($a);
|
|
||||||
$$;
|
|
||||||
SELECT testRegexpToJsonb();
|
|
||||||
ERROR: cannot transform this Perl type to jsonb
|
|
||||||
CONTEXT: PL/Perl function "testregexptojsonb"
|
|
||||||
-- this revealed a bug in the original implementation
|
-- this revealed a bug in the original implementation
|
||||||
CREATE FUNCTION testRegexpResultToJsonb() RETURNS jsonb
|
CREATE FUNCTION testRegexpResultToJsonb() RETURNS jsonb
|
||||||
LANGUAGE plperl
|
LANGUAGE plperl
|
||||||
@ -218,4 +207,4 @@ SELECT roundtrip('{"1": {"2": [3, 4, 5]}, "2": 3}');
|
|||||||
|
|
||||||
\set VERBOSITY terse \\ -- suppress cascade details
|
\set VERBOSITY terse \\ -- suppress cascade details
|
||||||
DROP EXTENSION plperl CASCADE;
|
DROP EXTENSION plperl CASCADE;
|
||||||
NOTICE: drop cascades to 7 other objects
|
NOTICE: drop cascades to 6 other objects
|
||||||
|
@ -39,17 +39,6 @@ SELECT testSVToJsonb();
|
|||||||
1
|
1
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
-- unsupported (for now)
|
|
||||||
CREATE FUNCTION testRegexpToJsonb() RETURNS jsonb
|
|
||||||
LANGUAGE plperlu
|
|
||||||
TRANSFORM FOR TYPE jsonb
|
|
||||||
AS $$
|
|
||||||
my $a = qr/foo/;
|
|
||||||
return ($a);
|
|
||||||
$$;
|
|
||||||
SELECT testRegexpToJsonb();
|
|
||||||
ERROR: cannot transform this Perl type to jsonb
|
|
||||||
CONTEXT: PL/Perl function "testregexptojsonb"
|
|
||||||
-- this revealed a bug in the original implementation
|
-- this revealed a bug in the original implementation
|
||||||
CREATE FUNCTION testRegexpResultToJsonb() RETURNS jsonb
|
CREATE FUNCTION testRegexpResultToJsonb() RETURNS jsonb
|
||||||
LANGUAGE plperlu
|
LANGUAGE plperlu
|
||||||
@ -218,4 +207,4 @@ SELECT roundtrip('{"1": {"2": [3, 4, 5]}, "2": 3}');
|
|||||||
|
|
||||||
\set VERBOSITY terse \\ -- suppress cascade details
|
\set VERBOSITY terse \\ -- suppress cascade details
|
||||||
DROP EXTENSION plperlu CASCADE;
|
DROP EXTENSION plperlu CASCADE;
|
||||||
NOTICE: drop cascades to 7 other objects
|
NOTICE: drop cascades to 6 other objects
|
||||||
|
@ -34,18 +34,6 @@ $$;
|
|||||||
SELECT testSVToJsonb();
|
SELECT testSVToJsonb();
|
||||||
|
|
||||||
|
|
||||||
-- unsupported (for now)
|
|
||||||
CREATE FUNCTION testRegexpToJsonb() RETURNS jsonb
|
|
||||||
LANGUAGE plperl
|
|
||||||
TRANSFORM FOR TYPE jsonb
|
|
||||||
AS $$
|
|
||||||
my $a = qr/foo/;
|
|
||||||
return ($a);
|
|
||||||
$$;
|
|
||||||
|
|
||||||
SELECT testRegexpToJsonb();
|
|
||||||
|
|
||||||
|
|
||||||
-- this revealed a bug in the original implementation
|
-- this revealed a bug in the original implementation
|
||||||
CREATE FUNCTION testRegexpResultToJsonb() RETURNS jsonb
|
CREATE FUNCTION testRegexpResultToJsonb() RETURNS jsonb
|
||||||
LANGUAGE plperl
|
LANGUAGE plperl
|
||||||
|
@ -34,18 +34,6 @@ $$;
|
|||||||
SELECT testSVToJsonb();
|
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
|
-- this revealed a bug in the original implementation
|
||||||
CREATE FUNCTION testRegexpResultToJsonb() RETURNS jsonb
|
CREATE FUNCTION testRegexpResultToJsonb() RETURNS jsonb
|
||||||
LANGUAGE plperlu
|
LANGUAGE plperlu
|
||||||
|
Loading…
Reference in New Issue
Block a user