From: Bo Peng Date: Fri, 7 Jun 2019 08:19:37 +0000 (+0900) Subject: Fix to deal with backslashes according to the config of standard_conforming_strings X-Git-Tag: V3_4_25~16 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=eb07690cd52b1f6f3da5dadb7eb55dfd3d4bb2b4;p=pgpool2.git Fix to deal with backslashes according to the config of standard_conforming_strings in native replication mode. per bug467. --- diff --git a/src/parser/outfuncs.c b/src/parser/outfuncs.c index 64ed8a71c..ad88a752b 100644 --- a/src/parser/outfuncs.c +++ b/src/parser/outfuncs.c @@ -245,7 +245,8 @@ static char *escape_string(char *str) } else if (str[i] == '\\') { - es[j++] = '\\'; + if (!standard_conforming_strings) + es[j++] = '\\'; } es[j] = str[i]; }