diff options
author | Teodor Sigaev <teodor@sigaev.ru> | 2007-11-16 17:31:16 +0000 |
---|---|---|
committer | Teodor Sigaev <teodor@sigaev.ru> | 2007-11-16 17:31:16 +0000 |
commit | 505292eb41cf82cac449d15dd592d109e25d3c8f (patch) | |
tree | 99e7727ba52c95c02a7b260da0b25b600c1f153f /contrib/tsearch2/tsvector.c | |
parent | 8145f00f27b8159908b3b8e984729adb2cf26cd0 (diff) | |
download | postgresql-505292eb41cf82cac449d15dd592d109e25d3c8f.tar.gz postgresql-505292eb41cf82cac449d15dd592d109e25d3c8f.zip |
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/tsvector.c')
-rw-r--r-- | contrib/tsearch2/tsvector.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tsearch2/tsvector.c b/contrib/tsearch2/tsvector.c index d823231067a..07f64ba4137 100644 --- a/contrib/tsearch2/tsvector.c +++ b/contrib/tsearch2/tsvector.c @@ -519,7 +519,7 @@ tsvector_out(PG_FUNCTION_ARGS) j = ptr->len; while (j--) { - if (*curin == '\'') + if (*curin == '\'' || *curin == '\\') { int4 pos = curout - outbuf; |