diff options
| author | Bo Peng | 2019-06-07 08:19:37 +0000 |
|---|---|---|
| committer | Bo Peng | 2019-06-07 08:19:37 +0000 |
| commit | 126a12f7ecd2f1a294c5e523ae83389a32e87699 (patch) | |
| tree | 6e173cad27539b54135ab98dfa5d07c9f8ed8697 /src/parser/outfuncs.c | |
| parent | dc9742678dd04719a08a747d40cd4c0781fce49a (diff) | |
Fix to deal with backslashes according to the config of standard_conforming_strings
in native replication mode.
per bug467.
Diffstat (limited to 'src/parser/outfuncs.c')
| -rw-r--r-- | src/parser/outfuncs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parser/outfuncs.c b/src/parser/outfuncs.c index 7eaf32afb..fbef9e5e0 100644 --- a/src/parser/outfuncs.c +++ b/src/parser/outfuncs.c @@ -255,7 +255,8 @@ escape_string(char *str) } else if (str[i] == '\\') { - es[j++] = '\\'; + if (!standard_conforming_strings) + es[j++] = '\\'; } es[j] = str[i]; } |
