From: Bruce Momjian Date: Fri, 19 May 2006 04:41:06 +0000 (+0000) Subject: Back out \' change for tsearch2, broke regression tests. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=b6bf33bfaa50965c7fb2285cee3ea15f1249c89c;p=users%2Fbernd%2Fpostgres.git Back out \' change for tsearch2, broke regression tests. --- diff --git a/contrib/tsearch2/query.c b/contrib/tsearch2/query.c index 10da22c035..0a1805e0e7 100644 --- a/contrib/tsearch2/query.c +++ b/contrib/tsearch2/query.c @@ -723,7 +723,7 @@ infix(INFIX * in, bool first) { if (*op == '\'') { - *(in->cur) = '\''; + *(in->cur) = '\\'; in->cur++; } *(in->cur) = *op; diff --git a/contrib/tsearch2/tsvector.c b/contrib/tsearch2/tsvector.c index 38770dd61c..cfed6e428a 100644 --- a/contrib/tsearch2/tsvector.c +++ b/contrib/tsearch2/tsvector.c @@ -526,7 +526,7 @@ tsvector_out(PG_FUNCTION_ARGS) outbuf = (char *) repalloc((void *) outbuf, ++lenbuf); curout = outbuf + pos; - *curout++ = '\''; + *curout++ = '\\'; } *curout++ = *curin++; }