From: Teodor Sigaev Date: Mon, 7 Jun 2004 16:49:25 +0000 (+0000) Subject: Remove asymetrical word processing in query and text X-Git-Tag: REL7_3_7~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=144dc305541d031f0521eba8775216d35e973a5d;p=postgresql Remove asymetrical word processing in query and text --- diff --git a/contrib/tsearch/query.c b/contrib/tsearch/query.c index 9d5e126c5b..0e495eaaae 100644 --- a/contrib/tsearch/query.c +++ b/contrib/tsearch/query.c @@ -232,9 +232,18 @@ pushval_morph(QPRS_STATE * state, int typeval, char *strval, int lenval) lemm = lemmatize(token, &lenlemm, type); if (lemm) { + if ( lemm==token ) { + char *ptrs=token,*ptrd; + ptrd = lemm = palloc(lenlemm+1); + while(ptrs-token