Hi,

I did another test using OSQLSynchQuery instead of OSQLAsynchQuery and it 
works: the edges are now returned as expected.

Is this the right behavior? Should I open an issue?

On Thursday, February 6, 2014 9:08:24 AM UTC, Andrey Lomakin wrote:
>
> Hi Fabrizio,
> It is possible, but we need more information, could you open issue and 
> send us test case or database to check it.
>
>
>
> On Thu, Feb 6, 2014 at 11:03 AM, Fabrizio Fortino 
> <[email protected]<javascript:>
> > wrote:
>
>> Additional note: if I execute
>>
>>  System.out.println(doc.countEdges(Direction.OUT, "has"));
>>
>> It prints the right number of edges. Could it be a bug on getEdges() 
>> method?
>>
>>
>>
>> On Wednesday, February 5, 2014 2:22:55 PM UTC, Fabrizio Fortino wrote:
>>>
>>> Hi guys,
>>>
>>> I have a graph database with Vertices and Edges. When I try to execute 
>>> the following code:
>>>
>>> graph.command(
>>>   new OSQLAsynchQuery<Vertex>("select from MyVertex", new 
>>> OCommandResultListener() {
>>>     public boolean result(Object iRecord) {
>>>       Vertex doc = graph.getVertex(iRecord);
>>>       System.out.println("V " + doc);
>>>       for (Edge e : doc.getEdges(Direction.BOTH)) {
>>>         System.out.println("E " + e);
>>>       }
>>>       return true;
>>>     }
>>>     
>>>     public void end() {
>>>     // TODO Auto-generated method stub
>>>     }
>>>  })).execute();
>>>
>>>
>>> I cannot see any edge printed. Any idea?
>>>
>>> Thanks,
>>> Fabrizio
>>>
>>  -- 
>>  
>> --- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
> Best regards,
> Andrey Lomakin.
>
> Orient Technologies
> the Company behind OrientDB
>
>  

-- 

--- 
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