diff options
author | Teodor Sigaev | 2007-11-16 17:31:16 +0000 |
---|---|---|
committer | Teodor Sigaev | 2007-11-16 17:31:16 +0000 |
commit | 505292eb41cf82cac449d15dd592d109e25d3c8f (patch) | |
tree | 99e7727ba52c95c02a7b260da0b25b600c1f153f /contrib/tsearch2/query.c | |
parent | 8145f00f27b8159908b3b8e984729adb2cf26cd0 (diff) |
Backpatch: Fix tsvector_out() and tsquery_out() to escape backslesh, add test of that.
Patch by Bruce Momjian <bruce@momjian.us>
Diffstat (limited to 'contrib/tsearch2/query.c')
-rw-r--r-- | contrib/tsearch2/query.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tsearch2/query.c b/contrib/tsearch2/query.c index 9c4ed370a6b..95bce54fc4f 100644 --- a/contrib/tsearch2/query.c +++ b/contrib/tsearch2/query.c @@ -680,7 +680,7 @@ infix(INFIX * in, bool first) in->cur++; while (*op) { - if (*op == '\'') + if (*op == '\'' || *op == '\\') { *(in->cur) = '\\'; in->cur++; |