From 357ae6673aae16f4f8bbddf9c70d0f6c3fc389db Mon Sep 17 00:00:00 2001 From: wushin Date: Mon, 2 Mar 2015 01:18:27 -0600 Subject: hercules converter: stringutils: add escape case for \ --- hercules/code/stringutils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hercules/code/stringutils.py b/hercules/code/stringutils.py index a442ae7..9dcbff8 100644 --- a/hercules/code/stringutils.py +++ b/hercules/code/stringutils.py @@ -35,6 +35,7 @@ def stripNewLine(data): return data def escapeSqlStr(data): + data = data.replace("\\", "\\\\"); data = data.replace("'", "\\'"); data = data.replace("`", "\\`"); data = data.replace("{", "\\{"); -- cgit v1.2.3-70-g09d2