jadell / neo4jphp

PHP wrapper of the Neo4j REST interface
Other
532 stars 137 forks source link

Exception: Unable to execute query from github example #70

Closed Cassandra-d closed 12 years ago

Cassandra-d commented 12 years ago

Query:

$queryString = "START n=node({start}) ".
    "MATCH (n)<-[:KNOWS]-(x)".
    "WHERE x.name = {name}".
    "RETURN x";
$query = new Everyman\Neo4j\Cypher\Query($client, $queryString, array('start' => 1, 'name' => 'Bob'));
$result = $query->getResultSet();

Error:

[message] => reserved keyword "START n=node({start}) MATCH (n)<-[:KNOWS]-(x)WHERE x.name = {name}RETURN x" ^

Arrow must point to first } symbol near "start".

jadell commented 12 years ago

Thanks for finding this. Fixed