From: Teodor Sigaev Date: Mon, 7 Jun 2004 16:48:49 +0000 (+0000) Subject: Remove asymetrical word processing in query and text X-Git-Tag: REL7_4_3~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db688bc1c3f3eb774595fe90f7849b7f54874661;p=thirdparty%2Fpostgresql.git Remove asymetrical word processing in query and text --- diff --git a/contrib/tsearch/query.c b/contrib/tsearch/query.c index bcf2e0d83c4..88b7f7e4cb2 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