postgrespro.git / summary / log / commit / refs
commit 4e197bf19556a1699b0e11e1ff111d77d09f6f80
Author: Michael Paquier <michael@paquier.xyz>
Date: Fri Mar 15 07:20:11 2019 +0000
Fix typo related to to_tsvector() in tests of json and jsonb
Author: Sho Kato
Reviewed-by: Kyotaro Horiguchi
Discussion: https://postgr.es/m/25C1C6B2E7BE044889E4FE8643A58BA963E1D03D@G01JPEXMBKW03
src/test/regress/expected/json.out | 2 +-
src/test/regress/expected/jsonb.out | 2 +-
src/test/regress/sql/json.sql | 2 +-
src/test/regress/sql/jsonb.sql | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/test/regress/expected/json.out b/src/test/regress/expected/json.out
index 66d10ae30d..cb93598039 100644
--- a/src/test/regress/expected/json.out
+++ b/src/test/regress/expected/json.out
@@ -2427,7 +2427,7 @@ select json_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d":
'123':5 '456':7 'aaa':1 'bbb':3
(1 row)
--- ts_vector corner cases
+-- to_tsvector corner cases
select to_tsvector('""'::json);
to_tsvector
-------------
diff --git a/src/test/regress/expected/jsonb.out b/src/test/regress/expected/jsonb.out
index 8dcdaf5602..c251eb70be 100644
--- a/src/test/regress/expected/jsonb.out
+++ b/src/test/regress/expected/jsonb.out
@@ -4225,7 +4225,7 @@ select jsonb_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d"
'123':5 '456':7 'aaa':1 'bbb':3
(1 row)
--- ts_vector corner cases
+-- to_tsvector corner cases
select to_tsvector('""'::jsonb);
to_tsvector
-------------
diff --git a/src/test/regress/sql/json.sql b/src/test/regress/sql/json.sql
index d1e4008427..0f0a32e2a0 100644
--- a/src/test/regress/sql/json.sql
+++ b/src/test/regress/sql/json.sql
@@ -788,7 +788,7 @@ select json_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d":
select json_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::json, '"boolean"');
select json_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::json, '["string", "numeric"]');
--- ts_vector corner cases
+-- to_tsvector corner cases
select to_tsvector('""'::json);
select to_tsvector('{}'::json);
select to_tsvector('[]'::json);
diff --git a/src/test/regress/sql/jsonb.sql b/src/test/regress/sql/jsonb.sql
index 6cbdfe4395..1bf32076e3 100644
--- a/src/test/regress/sql/jsonb.sql
+++ b/src/test/regress/sql/jsonb.sql
@@ -1114,7 +1114,7 @@ select jsonb_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d"
select jsonb_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '"boolean"');
select jsonb_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '["string", "numeric"]');
--- ts_vector corner cases
+-- to_tsvector corner cases
select to_tsvector('""'::jsonb);
select to_tsvector('{}'::jsonb);
select to_tsvector('[]'::jsonb);
[parent: bb16aba50c94]