diff options
author | Bruce Momjian | 2006-05-19 04:41:06 +0000 |
---|---|---|
committer | Bruce Momjian | 2006-05-19 04:41:06 +0000 |
commit | 3a3622c5f03ace3b0933e078d65e8a9a196dedf0 (patch) | |
tree | d372f0232432cc6a2586500994d3f6ac392bd10d | |
parent | e720382441329532794a2196a6522751191ed7fd (diff) |
Back out \' change for tsearch2, broke regression tests.
-rw-r--r-- | contrib/tsearch2/query.c | 2 | ||||
-rw-r--r-- | contrib/tsearch2/tsvector.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/tsearch2/query.c b/contrib/tsearch2/query.c index 10da22c035f..0a1805e0e75 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 38770dd61c9..cfed6e428a3 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++; } |