mirror of
https://github.com/postgres/postgres.git
synced 2025-12-24 06:01:07 +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:
@@ -520,7 +520,7 @@ tsvector_out(PG_FUNCTION_ARGS)
|
||||
j = ptr->len;
|
||||
while (j--)
|
||||
{
|
||||
if (*curin == '\'')
|
||||
if (*curin == '\'' || *curin == '\\')
|
||||
{
|
||||
int4 pos = curout - outbuf;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user