From: Teodor Sigaev Date: Mon, 7 Jun 2004 16:48:18 +0000 (+0000) Subject: Remove asymetrical word processing in query and text X-Git-Tag: REL8_0_0BETA1~420 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e25a6e185bbb3894ed87459354099df877b0d311;p=postgresql Remove asymetrical word processing in query and text --- diff --git a/contrib/tsearch/query.c b/contrib/tsearch/query.c index bcf2e0d83c..88b7f7e4cb 100644 --- a/contrib/tsearch/query.c +++ b/contrib/tsearch/query.c @@ -240,9 +240,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