This commit is contained in:
Miroslav Stampar
2017-07-31 14:20:59 +02:00
parent 62ae149464
commit 68ee1f361b
4 changed files with 12 additions and 12 deletions

View File

@@ -1985,7 +1985,7 @@ def getSQLSnippet(dbms, sfile, **variables):
retVal = re.sub(r";\s+", "; ", retVal).strip("\r\n")
for _ in variables.keys():
retVal = re.sub(r"%%%s%%" % _, variables[_], retVal)
retVal = re.sub(r"%%%s%%" % _, variables[_].replace('\\', r'\\'), retVal)
for _ in re.findall(r"%RANDSTR\d+%", retVal, re.I):
retVal = retVal.replace(_, randomStr())