Wolfgang-Schuetzelhofer / jcypher

Java access to Neo4J graph databases at multiple levels of abstraction
Apache License 2.0
86 stars 15 forks source link

CypherWriter escapes backslashes and single quotes in strings. #21

Closed wouterd closed 8 years ago

wouterd commented 8 years ago

Strings are passed as single quoted strings into cypher queries. If I pass it a String value like 's Hertogenbosch it breaks the query. The special character \ should also be escaped in Strings. This PR fixes that.

Wolfgang-Schuetzelhofer commented 8 years ago

Thanks for your contribution, I have merged your PR.

Best regards, Wolfgang

wouterd commented 8 years ago

Thanks! And thanks for creating this great library.