Created
April 2, 2016 08:17
-
-
Save rationalism/adb5b10d57102528680c829ac699c9c2 to your computer and use it in GitHub Desktop.
Clojure for reproduction of 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)")])) | |
(->> (range 10) (pmap bug-query) dorun) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment