Hi!
I just tried out Castor JDO and have a question. Is it bug of 0.9.3, but if 
I try this code example:
       // Construct a new query and bind its parameters
       oql = db.getOQLQuery( "SELECT p FROM Person p" );
       // Retrieve results and print each one
       results = oql.execute();
       while ( results.hasMore() ) {
         Person rPers = (Person) results.next();
         System.out.println( rPers.getSurname() );
       }
I get exception from Interbase driver (stack trace):
Nested error: interbase.interclient.InvalidOperationException: 
[interclient] Invalid operation to read past end of cursor.
See API reference for exception interbase.interclient.InvalidOperationException

interbase.interclient.InvalidOperationException: [interclient] Invalid 
operation to read past end of cursor.
See API reference for exception interbase.interclient.InvalidOperationException
         at interbase.interclient.ResultSet.getNextCursorPosition(Unknown 
Source)
         at interbase.interclient.ResultSet.next(Unknown Source)
         at 
org.exolab.castor.jdo.engine.SQLEngine$SQLQuery.nextIdentity(SQLEngine.java:1633)
         at 
org.exolab.castor.persist.QueryResults.nextIdentity(QueryResults.java:173)
         at 
org.exolab.castor.jdo.engine.OQLQueryImpl$OQLEnumeration.hasMore(OQLQueryImpl.java:570)
         at 
org.exolab.castor.jdo.engine.OQLQueryImpl$OQLEnumeration.hasMore(OQLQueryImpl.java:556)
         at testApps.gunkuTest.testCastorJDO(gunkuTest.java:75)
         at testApps.gunkuTest.main(gunkuTest.java:91)

Question is if results.hasMore() works with Interbase correctly and if it 
is fixed in CVS (I can not get to CVS because of firewalls)? Or probably I 
am doing something wrong?

Gundars Kulups
Project manager
A/S Dati
Phone: +371-7067713
Mobile: +371-9466055
Fax: +371-7619573

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

Reply via email to