Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 19892fe

Browse files
committed
Back out \' change for tsearch2, broke regression tests.
1 parent 7d866ff commit 19892fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/tsearch2/query.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ infix(INFIX * in, bool first)
748748
{
749749
if ( t_iseq(op, '\'') )
750750
{
751-
*(in->cur) = '\'';
751+
*(in->cur) = '\\';
752752
in->cur++;
753753
}
754754
COPYCHAR(in->cur,op);

contrib/tsearch2/tsvector.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ tsvector_out(PG_FUNCTION_ARGS)
529529

530530
outbuf = (char *) repalloc((void *) outbuf, ++lenbuf);
531531
curout = outbuf + pos;
532-
*curout++ = '\'';
532+
*curout++ = '\\';
533533
}
534534
while(len--)
535535
*curout++ = *curin++;

0 commit comments

Comments
 (0)