Hi, I have tried this code and it works with 2.1.8

HashMap<String, Object> params = new HashMap<String, Object>();
params.put("p0", "mail");
Iterable<Vertex> result=g.command(new OCommandSQL("SELECT COUNT(*) FROM 
(SELECT FROM User WHERE Email=:p0)")).execute(params);
for(Vertex v: result){
System.out.println(v.getProperty("COUNT"));
 }

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to