1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-31 22:04:40 +03:00

Backpatch: Fix tsvector_out() and tsquery_out() to escape backslesh, add test of that.

Patch by Bruce Momjian <bruce@momjian.us>
This commit is contained in:
Teodor Sigaev
2007-11-16 17:09:15 +00:00
parent 011e0efc15
commit 9275f2d34c
4 changed files with 10 additions and 2 deletions

View File

@ -520,7 +520,7 @@ tsvector_out(PG_FUNCTION_ARGS)
j = ptr->len;
while (j--)
{
if (*curin == '\'')
if (*curin == '\'' || *curin == '\\')
{
int4 pos = curout - outbuf;