projects
/
pgpool2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e28d4c
)
Fix to deal with backslashes according to the config of standard_conforming_strings
author
Bo Peng
<pengbo@sraoss.co.jp>
Fri, 7 Jun 2019 08:19:37 +0000
(17:19 +0900)
committer
Bo Peng
<pengbo@sraoss.co.jp>
Fri, 7 Jun 2019 08:31:41 +0000
(17:31 +0900)
in native replication mode.
per bug467.
src/parser/outfuncs.c
patch
|
blob
|
blame
|
history
diff --git
a/src/parser/outfuncs.c
b/src/parser/outfuncs.c
index 595ba1d774cfbcd0ca9e1729217166cea488e8d8..1576222fbfb7e74c0d0684749da1e127bd9acf32 100644
(file)
--- a/
src/parser/outfuncs.c
+++ b/
src/parser/outfuncs.c
@@
-252,7
+252,8
@@
static char *escape_string(char *str)
}
else if (str[i] == '\\')
{
- es[j++] = '\\';
+ if (!standard_conforming_strings)
+ es[j++] = '\\';
}
es[j] = str[i];
}