summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2015-03-02 01:18:27 -0600
committerwushin <pasekei@gmail.com>2015-03-02 01:18:27 -0600
commit357ae6673aae16f4f8bbddf9c70d0f6c3fc389db (patch)
treefacbe99cec567f5594684f1dac3165492bf0e015
parent10c441c0a335a6d8cab46fcd851054b0cbe19e98 (diff)
downloadevol-tools-357ae6673aae16f4f8bbddf9c70d0f6c3fc389db.tar.gz
evol-tools-357ae6673aae16f4f8bbddf9c70d0f6c3fc389db.tar.bz2
evol-tools-357ae6673aae16f4f8bbddf9c70d0f6c3fc389db.tar.xz
evol-tools-357ae6673aae16f4f8bbddf9c70d0f6c3fc389db.zip
hercules converter: stringutils: add escape case for \
-rw-r--r--hercules/code/stringutils.py1
1 files changed, 1 insertions, 0 deletions
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("{", "\\{");