From: Bruce Momjian Date: Fri, 19 May 2006 04:41:06 +0000 (+0000) Subject: Back out \' change for tsearch2, broke regression tests. X-Git-Tag: REL8_1_4~7 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=3a3622c5f03ace3b0933e078d65e8a9a196dedf0;p=users%2Fc2main%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++; }