Unverified Commit 1faa7133 authored by jonhehir's avatar jonhehir Committed by GitHub

fix: Escape backslashes in Neo4jCsvPublisher

parent 7ef5ab69
...@@ -395,7 +395,7 @@ ON MATCH SET {update_prop_body}""".format(create_prop_body=create_prop_body, ...@@ -395,7 +395,7 @@ ON MATCH SET {update_prop_body}""".format(create_prop_body=create_prop_body,
# if isinstance(str, v): # if isinstance(str, v):
v = v.replace('\'', "\\'") v = v.replace('\'', "\\'")
# escape backslash for Cypher query # escape backslash for Cypher query
v = v.replace("\\", "\\") v = v.replace('\\', '\\\\')
if k.endswith(UNQUOTED_SUFFIX): if k.endswith(UNQUOTED_SUFFIX):
k = k[:-len(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