Skip to content

Commit

Permalink
fix: Escape backslashes in Neo4jCsvPublisher
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhehir authored Jul 1, 2020
1 parent 7ef5ab6 commit 1faa713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion databuilder/publisher/neo4j_csv_publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def _create_props_body(self,
# if isinstance(str, v):
v = v.replace('\'', "\\'")
# escape backslash for Cypher query
v = v.replace("\\", "\\")
v = v.replace('\\', '\\\\')

if k.endswith(UNQUOTED_SUFFIX):
k = k[:-len(UNQUOTED_SUFFIX)]
Expand Down

0 comments on commit 1faa713

Please sign in to comment.