summaryrefslogtreecommitdiff
path: root/hercules/code/stringutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'hercules/code/stringutils.py')
-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("{", "\\{");