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

Commitd6ac234

Browse files
committed
Stabilize just-added regression test cases.
The tests added by commits029dea8 et al turn out to producedifferent output under -DRANDOMIZE_ALLOCATED_MEMORY. This isnot a bug exactly: that flag causes coerce_type() to invokethe input function twice when coercing an unknown-type literalto a specific type. So you get tsqueryin's bleat about an emptytsquery twice. Revise the test query to avoid that.Discussion:https://postgr.es/m/20230406213813.uep7plg6lvcywujo@awork3.anarazel.de
1 parentf976a77 commitd6ac234

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2002,20 +2002,16 @@ to_tsquery('english','Lorem') && phraseto_tsquery('english','ullamcorper urna'),
20022002

20032003
-- Edge cases with empty query
20042004
SELECT ts_headline('english',
2005-
'',''::tsquery);
2005+
'',to_tsquery('english', ''));
20062006
NOTICE: text-search query doesn't contain lexemes: ""
2007-
LINE 2: '', ''::tsquery);
2008-
^
20092007
ts_headline
20102008
-------------
20112009

20122010
(1 row)
20132011

20142012
SELECT ts_headline('english',
2015-
'foo bar',''::tsquery);
2013+
'foo bar',to_tsquery('english', ''));
20162014
NOTICE: text-search query doesn't contain lexemes: ""
2017-
LINE 2: 'foo bar', ''::tsquery);
2018-
^
20192015
ts_headline
20202016
-------------
20212017
foo bar

‎src/test/regress/sql/tsearch.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,9 @@ to_tsquery('english','Lorem') && phraseto_tsquery('english','ullamcorper urna'),
565565

566566
-- Edge cases with empty query
567567
SELECT ts_headline('english',
568-
'',''::tsquery);
568+
'',to_tsquery('english',''));
569569
SELECT ts_headline('english',
570-
'foo bar',''::tsquery);
570+
'foo bar',to_tsquery('english',''));
571571

572572
--Rewrite sub system
573573

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp