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:31:16 +00:00
parent 8145f00f27
commit 505292eb41
4 changed files with 17 additions and 2 deletions

View File

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