Closed bconneen closed 8 years ago
Hi Brian, to avoid concatenating consecutive clauses of same type (not only MERGE clauses), you insert a SEPERATE clauses between them:
new IClause[] { MERGE.node(user).label("User").property("_id").value(...), SEPARATE.nextClause(), MERGE.node(team).label("Team").property("_id").value(...), SEPARATE.nextClause(), MERGE.node(user).relation(activeIn).out.... } ...
That works for all clauses which are concatenated and you don't want them to be concatenated.
Hope that helps, best regards, Wolfgang
Hi Brian,
after having had a look into MERGE, it seems that multiple merge commands seperated by commas never work. I will change the code so that consecutive MERGE clauses will never be concatenated. The code change will also be in release 3.3.1.
best regards, Wolfgang
Hi Brian,
JCypher 3.3.1 has been released, containing the previously mentioned fixes.
Best regards, Wolfgang
Wolfgang,
Thank you once again for rapid response and resolution.
First Example: When JCYPHER Concatenates multiple MERGE clauses in the Same Query
Second Example: When I modify ContextWriter.java to not concatenate MERGE clauses.
Just did this to test it: