java - ExecutionEngine not recognizing parameter -


i'm using neo4j 1.8.rc1, , trying generate clustering coefficient nodes in graph.

i've got following code, far can tell working on linux system, not work on windows machine:

map<string, object> params = new hashmap<string, object>();  string query; string typestring;  if (type == <some type>) {     typestring = "type1"; } else {     typestring = "type2"; }  params.put("myid", userid); query = "start a=node(*) match (a)-[:"+ typestring +"]-(b) a, count(distinct b) n "         + "match (a)-[:" + typestring + "]-()-[r:"+ typestring+"]-()-[:"+typestring+"]-(a) a.thisid! = {myid} return n, count(distinct r) relcount";  executionengine engine = new executionengine(graphdb); executionresult result = engine.execute(query, params); 

when try access result,

exception in thread "main" java.lang.runtimeexception:    org.neo4j.cypher.parameternotfoundexception: expected parameter named myid 

i've stepped through , verified it's there. what's going on?

as comments above have noted, problem resolved updating 1.8.rc1 1.8.2. though don't have bug report point to, bug in neo4j resolved somewhere between versions.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -