neo4j/community — Issue #140: Cypher query with parameter named as query variable fails
Author: rickardoberg
Created: 2011-12-20 03:40:25+00:00
State: open
Labels: cypher

If a Cypher query has a parameter named "foo" and also a named variable "foo", then it will fail. Example:
start foo=node(0)
where foo.bar={foo}
return foo.bar

This will confuse the parser and fail. The parser should be able to handle the above, and realize that the {foo} reference is different from the "foo" variable that has been declared.