Trying to narrow the area of issue.

I ran this query

        OSQLSynchQuery<ODocument> query = new OSQLSynchQuery<>("select from 
Case where name = :cname");
        Map<String, String> params = new HashMap<>();
        params.put("cname", c.getCase().getName());
                List<ODocument> docs = 
graph.getRawGraph().command(query).execute(params);

And got a result. So, named parameters work.
Then, I ran these queries

        OSQLSynchQuery<ODocument> query = new OSQLSynchQuery<>("traverse * 
from (select from Case where name = :cname");
        Map<String, String> params = new HashMap<>();
        params.put("cname", c.getCase().getName());
            List<ODocument> docs = 
graph.getRawGraph().command(query).execute(params);

        OSQLSynchQuery<ODocument> query = new OSQLSynchQuery<>("traverse * 
from (select from Case where name = ?");
        List<ODocument> docs = 
graph.getRawGraph().command(query).execute("demo");


And didn't get any result. No exceptions though. However if I substitute 
named parameter with just a value, it returns a result.
So, I presume, there is a problem with named/unnamed parameters when 
traverse is around.

-- 

--- 
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/groups/opt_out.

Reply via email to