Skip to content

Commit f42d65e

Browse files
committed
Fix a bug to handle backslash in copy.
Stefan Mark provided the fix.
1 parent 837a9ab commit f42d65e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/pgxc/copy/copyops.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ attribute_out_text(StringInfo buf, char *string)
141141
{
142142
DUMPSOFAR();
143143
appendStringInfoCharMacro(buf, '\\');
144+
appendStringInfoCharMacro(buf, c);
144145
start = ++ptr;
145146
}
146147
else if (IS_HIGHBIT_SET(c))
@@ -201,6 +202,7 @@ attribute_out_text(StringInfo buf, char *string)
201202
{
202203
DUMPSOFAR();
203204
appendStringInfoCharMacro(buf, '\\');
205+
appendStringInfoCharMacro(buf, c);
204206
start = ++ptr;
205207
}
206208
else

0 commit comments

Comments
 (0)