Cypher's preprocessing's bug

bug

(Michael Weston) #1

Hello,

The following query crashes (with a "Syntax Error"):

MATCH (n) return n LIMIT 1;
MATCH (n)
UNWIND range(0, 5) as x
// Return n
RETURN n

And when a newline character is added before the comment it does not crash anymore.

MATCH (n) return n LIMIT 1;
MATCH (n)
UNWIND range(0, 5) as x

// Return n
RETURN n

The following code runs in the neo4j browser:
I thought you should know and fix it.

Good luck!


(Elaine Rosenberg) #2

Hello Michael,

I am looking into this problem with engineering.

Best regards,
Elaine Rosenberg


(Elaine Rosenberg) #3

This is a bug that has been entered into our backlog.

Thank you Michael for bringing it to our attention.

Elaine