Hello castor-dev,

I am creating two queries with the code like following :

QueryResults  getR(Database db){
        db.begin();
        OQLQuery query = db.getOQLQuery( getOQL() );
        QueryResults  results = query.execute();
        return(results)
}

db = jdo.getDatabase()
QueryResults a=getR(db);
  while(a.hasMore()){
    a.nextElement()
    // begin of nested
    db2 = jdo.getDatabase()
    QueryResults b=getR()
    while(b.hasMore()){
       b.nextElement()
    }
    db2.commit();
    db2.close;
    // end of nested
  }
db.commit();
db.close;

If i comment lines between "begin of nested" and "end of nested" a receive
many records in outer query and it's the right result.
When i uncomment these lines, i receive only one record.

-- 
Best regards,
 Max   
                      
http://belugin.newmail.ru
ICQ:9406811

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to