Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f1a285e

Browse files
committed
Fix unstable regression test result.
Commit e306df7 added a test case that depends on "the" being a stop word, which it is not in non-English locales. Since the point of the test is to check stopword behavior, fix by forcibly selecting the 'english' configuration. Per buildfarm.
1 parent 9a12ad0 commit f1a285e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/regress/expected/jsonb.out

+1-1
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

+1-1
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)