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

Commit 531ead8

Browse files
committed
Adjust error message to agree with documentation. The tsearch documentation
uniformly calls these things weights, not classes.
1 parent 24f3a77 commit 531ead8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/adt/tsginidx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/backend/utils/adt/tsginidx.c,v 1.4 2007/09/11 08:46:29 teodor Exp $
10+
* $PostgreSQL: pgsql/src/backend/utils/adt/tsginidx.c,v 1.5 2007/10/20 21:06:20 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -97,7 +97,7 @@ gin_extract_query(PG_FUNCTION_ARGS)
9797
if (strategy != TSearchWithClassStrategyNumber && val->weight != 0)
9898
ereport(ERROR,
9999
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
100-
errmsg("@@ operator does not support lexeme class restrictions"),
100+
errmsg("@@ operator does not support lexeme weight restrictions in GIN index searches"),
101101
errhint("Use the @@@ operator instead.")));
102102
}
103103
}

0 commit comments

Comments
 (0)