]> granicus.if.org Git - postgresql/commitdiff
Fix unstable regression test result.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 1 Apr 2017 00:24:12 +0000 (20:24 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 1 Apr 2017 00:24:21 +0000 (20:24 -0400)
Commit e306df7f9 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.

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

index e72a950599341603b036e0e9925496efa7c271f4..e93a15f98a870ae546e45ef3b257fc09a95401a1 100644 (file)
@@ -3489,7 +3489,7 @@ select to_tsvector('simple', '{"a": "aaa bbb ddd ccc", "b": ["eee fff ggg"], "c"
 (1 row)
 
 -- jsonb to tsvector with stop words
-select to_tsvector('{"a": "aaa in bbb ddd ccc", "b": ["the eee fff ggg"], "c": {"d": "hhh. iii"}}'::jsonb);
+select to_tsvector('english', '{"a": "aaa in bbb ddd ccc", "b": ["the eee fff ggg"], "c": {"d": "hhh. iii"}}'::jsonb);
                                 to_tsvector                                 
 ----------------------------------------------------------------------------
  'aaa':1 'bbb':3 'ccc':5 'ddd':4 'eee':8 'fff':9 'ggg':10 'hhh':12 'iii':13
index c9fa1fc393b380f4890aab079acb5247675a56f4..576e1448fd498ebb3808830d40ab59f21331409c 100644 (file)
@@ -886,7 +886,7 @@ select to_tsvector('{"a": "aaa bbb ddd ccc", "b": ["eee fff ggg"], "c": {"d": "h
 select to_tsvector('simple', '{"a": "aaa bbb ddd ccc", "b": ["eee fff ggg"], "c": {"d": "hhh iii"}}'::jsonb);
 
 -- jsonb to tsvector with stop words
-select to_tsvector('{"a": "aaa in bbb ddd ccc", "b": ["the eee fff ggg"], "c": {"d": "hhh. iii"}}'::jsonb);
+select to_tsvector('english', '{"a": "aaa in bbb ddd ccc", "b": ["the eee fff ggg"], "c": {"d": "hhh. iii"}}'::jsonb);
 
 -- ts_vector corner cases
 select to_tsvector('""'::jsonb);