Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf1a285e

Browse files
committed
Fix unstable regression test result.
Commite306df7 added a test case that depends on "the" being astop word, which it is not in non-English locales. Since thepoint of the test is to check stopword behavior, fix by forciblyselecting the 'english' configuration.Per buildfarm.
1 parent9a12ad0 commitf1a285e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/test/regress/expected/jsonb.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3489,7 +3489,7 @@ select to_tsvector('simple', '{"a": "aaa bbb ddd ccc", "b": ["eee fff ggg"], "c"
34893489
(1 row)
34903490

34913491
-- jsonb to tsvector with stop words
3492-
select to_tsvector('{"a": "aaa in bbb ddd ccc", "b": ["the eee fff ggg"], "c": {"d": "hhh. iii"}}'::jsonb);
3492+
select to_tsvector('english', '{"a": "aaa in bbb ddd ccc", "b": ["the eee fff ggg"], "c": {"d": "hhh. iii"}}'::jsonb);
34933493
to_tsvector
34943494
----------------------------------------------------------------------------
34953495
'aaa':1 'bbb':3 'ccc':5 'ddd':4 'eee':8 'fff':9 'ggg':10 'hhh':12 'iii':13

‎src/test/regress/sql/jsonb.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ select to_tsvector('{"a": "aaa bbb ddd ccc", "b": ["eee fff ggg"], "c": {"d": "h
886886
select to_tsvector('simple','{"a": "aaa bbb ddd ccc", "b": ["eee fff ggg"], "c": {"d": "hhh iii"}}'::jsonb);
887887

888888
-- jsonb to tsvector with stop words
889-
select to_tsvector('{"a": "aaa in bbb ddd ccc", "b": ["the eee fff ggg"], "c": {"d": "hhh. iii"}}'::jsonb);
889+
select to_tsvector('english','{"a": "aaa in bbb ddd ccc", "b": ["the eee fff ggg"], "c": {"d": "hhh. iii"}}'::jsonb);
890890

891891
-- ts_vector corner cases
892892
select to_tsvector('""'::jsonb);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp