summaryrefslogtreecommitdiff
path: root/contrib/tsearch2/query.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tsearch2/query.c')
-rw-r--r--contrib/tsearch2/query.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tsearch2/query.c b/contrib/tsearch2/query.c
index 2e501210274..532a867be76 100644
--- a/contrib/tsearch2/query.c
+++ b/contrib/tsearch2/query.c
@@ -683,7 +683,7 @@ infix(INFIX * in, bool first)
in->cur++;
while (*op)
{
- if (*op == '\'')
+ if (*op == '\'' || *op == '\\')
{
*(in->cur) = '\\';
in->cur++;