mirror of
https://github.com/postgres/postgres.git
synced 2025-06-05 00:02:04 -04:00
Fix wrong NOTICE/ERROR levels
This commit is contained in:
parent
efe1d427da
commit
a513ce2dff
@ -1,4 +1,4 @@
|
|||||||
/* $PostgreSQL: pgsql/contrib/tsearch2/dict_thesaurus.c,v 1.3 2006/06/02 17:55:40 teodor Exp $ */
|
/* $PostgreSQL: pgsql/contrib/tsearch2/dict_thesaurus.c,v 1.4 2006/06/02 18:03:06 teodor Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* thesaurus
|
* thesaurus
|
||||||
@ -331,9 +331,9 @@ compileTheLexeme(DictThesaurus *d) {
|
|||||||
|
|
||||||
if ( !(ptr && ptr->lexeme) ) {
|
if ( !(ptr && ptr->lexeme) ) {
|
||||||
if ( !ptr )
|
if ( !ptr )
|
||||||
elog(NOTICE,"Thesaurus: word '%s' isn't recognized by subdictionary", d->wrds[i].lexeme);
|
elog(ERROR,"Thesaurus: word '%s' isn't recognized by subdictionary", d->wrds[i].lexeme);
|
||||||
else
|
else
|
||||||
elog(ERROR,"Thesaurus: word '%s' is recognized as stop-word, assign any stop-word", d->wrds[i].lexeme);
|
elog(NOTICE,"Thesaurus: word '%s' is recognized as stop-word, assign any stop-word", d->wrds[i].lexeme);
|
||||||
|
|
||||||
newwrds = addCompiledLexeme( newwrds, &nnw, &tnm, NULL, d->wrds[i].entries, 0);
|
newwrds = addCompiledLexeme( newwrds, &nnw, &tnm, NULL, d->wrds[i].entries, 0);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user