untill orientdb-2.1.11 version 
my queries worked well .. 
when i changed to it .. 2.1.11
i couldn't get the resultset .. 
the problem is i think in  if  which calls result.isEmpty() ( this is the 
difference between lines from other versions)

OSQLSyncQuery
List<T> run(final Object... iArgs){
      /**
result.isEmpty() waits here
 */
    if (result.isEmpty() && res != result && res != null) {
      Iterator<Object> iter = res.iterator();
      while (iter.hasNext()) {
        Object item = iter.next();
        result.add((T) item);
      }
    }

    ((OResultSet) result).setCompleted();
}


result.isEmpty()  is 

@Override
  public boolean isEmpty() {
    boolean empty = underlying.isEmpty();
    if (empty) {
      waitForCompletion();
      empty = underlying.isEmpty();
    }
    return empty;
  }




  so it start to wait
  ...
to stop wait required to call method

((OResultSet) result).setCompleted(); 


but this method  never calls. 



-- 

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