RE: [OJB-developers] RE: RsIterator size()
Brought to you by:
thma
From: Matthew B. <ma...@so...> - 2002-06-09 16:11:30
|
Good idea! -----Original Message----- From: Oleg Nitz [mailto:on...@uk...] Sent: Sunday, June 09, 2002 3:43 AM To: obj...@li... Subject: Re: [OJB-developers] RE: RsIterator size() Hi, On Saturday 08 June 2002 22:40, Matthew Baird wrote: > Any thoughts on what to do with tests that are dependent on having this > functionality? > > Make them conditional? I propose to make them conditional. I guess that connection.getMetaData().supportsResultSetType( ResultSet.TYPE_SCROLL_INSENSITIVE) should return false if rs.last() is not supported. If this won't work, we may use Platforms. Oleg > > m > > -----Original Message----- > From: Jakob Braeuchi [mailto:jbr...@ho...] > Sent: Saturday, June 08, 2002 12:32 PM > To: Matthew Baird; obj...@li... > Subject: RsIterator size() > > hi, > > i do have a problem with an unsupported method in RsIterator#size(): > > ... > if (m_rsAndStmt.m_rs.last()) > ... > > m_rs.last() is not supported by the hsqldb shipped with ojb: > > [DEFAULT] ERROR: SQL Exception while getting size ROOT: This function is > not supported > ojb.broker.PersistenceBrokerException: SQL Exception while getting size > ROOT: This function is not supported > at ojb.broker.accesslayer.RsIterator.size(RsIterator.java:352) > at > ojb.broker.singlevm.PersistenceBrokerImpl.getCollectionByQuery(PersistenceB >r okerImpl.java:901) > > with mysql it works fine. > > jakob > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas - > http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink > > _______________________________________________ > Objectbridge-developers mailing list > Obj...@li... > https://lists.sourceforge.net/lists/listinfo/objectbridge-developers _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink _______________________________________________ Objectbridge-developers mailing list Obj...@li... https://lists.sourceforge.net/lists/listinfo/objectbridge-developers |