aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-03-31 20:24:12 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2017-03-31 20:24:21 -0400
commitf1a285e21111f4d4d0c3f428ce2b3ae9e7f162c2 (patch)
tree4e953b6b3ef02d0d754e6599171ad908f3f3a355 /src
parent9a12ad042d26ba085f8ef72d030699b6f3d43b01 (diff)
downloadpostgresql-f1a285e21111f4d4d0c3f428ce2b3ae9e7f162c2.tar.gz
postgresql-f1a285e21111f4d4d0c3f428ce2b3ae9e7f162c2.zip
Fix unstable regression test result.
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.
Diffstat (limited to 'src')
-rw-r--r--src/test/regress/expected/jsonb.out2
-rw-r--r--src/test/regress/sql/jsonb.sql2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/regress/expected/jsonb.out b/src/test/regress/expected/jsonb.out
index e72a9505993..e93a15f98a8 100644
--- a/src/test/regress/expected/jsonb.out
+++ b/src/test/regress/expected/jsonb.out
@@ -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
diff --git a/src/test/regress/sql/jsonb.sql b/src/test/regress/sql/jsonb.sql
index c9fa1fc393b..576e1448fd4 100644
--- a/src/test/regress/sql/jsonb.sql
+++ b/src/test/regress/sql/jsonb.sql
@@ -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);