1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-08 06:02:22 +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:17:52 +00:00
parent d38814675e
commit 4fc32d5891
4 changed files with 10 additions and 2 deletions

View File

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