@@ -150,21 +150,4 @@ select jsonb_to_tsvector2('null'::jsonb, '"all"');
150
150
151
151
(1 row)
152
152
153
- select jsonb_to_tsvector2('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '""');
154
- ERROR: wrong flag in flag array: ""
155
- HINT: Possible values are: "string", "numeric", "boolean", "key", and "all"
156
- select jsonb_to_tsvector2('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '{}');
157
- ERROR: wrong flag type, only arrays and scalars are allowed
158
- select jsonb_to_tsvector2('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '[]');
159
- jsonb_to_tsvector2
160
- --------------------
161
-
162
- (1 row)
163
-
164
- select jsonb_to_tsvector2('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, 'null');
165
- ERROR: flag array element is not a string
166
- HINT: Possible values are: "string", "numeric", "boolean", "key", and "all"
167
- select jsonb_to_tsvector2('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '["all", null]');
168
- ERROR: flag array element is not a string
169
- HINT: Possible values are: "string", "numeric", "boolean", "key", and "all"
170
153
DROP EXTENSION tsvector2;
0 commit comments