Created
April 2, 2016 08:37
-
-
Save rationalism/14ee4f0aa341c22e25f416a1fa783646 to your computer and use it in GitHub Desktop.
Clojure to reproduce Neo4j problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn bug-query [id] | |
(cypher-combined-tx | |
[(str "MATCH (root)-[:name]->(b:person_name) WHERE ID(root) = " id " DETACH DELETE b") | |
(str "MATCH (a) WHERE ID(a) = " id " MERGE (b:person_name {val: 'Bob Smith'}) CREATE (a)-[r:name]->(b)")])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment