Unverified Commit 21a763ad authored by jonhehir's avatar jonhehir Committed by GitHub

escape backslashes before quotes, otherwise you break everything (#298)

parent 1faa7133
......@@ -391,11 +391,11 @@ ON MATCH SET {update_prop_body}""".format(create_prop_body=create_prop_body,
template_params[k] = v
continue
# escape quote for Cypher query
# if isinstance(str, v):
v = v.replace('\'', "\\'")
# escape backslash for Cypher query
v = v.replace('\\', '\\\\')
# escape quote for Cypher query
v = v.replace('\'', "\\'")
if k.endswith(UNQUOTED_SUFFIX):
k = k[:-len(UNQUOTED_SUFFIX)]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment