db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Army <qoz...@gmail.com>
Subject Re: [jira] Commented: (DERBY-827) Performance can be improved by re-using language ResultSets across Activation executions.
Date Fri, 02 Mar 2007 16:02:41 GMT
Dyre.Tjeldvoll@Sun.COM wrote:
> 
> When I tried letting my assertResultSet call
> JDBC.assertFullResultSet() I got ArrayIndexOutOfBoundsExceptions all
> over the place since I use the assert method to test empty resultsets
> against zero-length Object arrays...

Would

   JDBC.assertDrainResults(rs, 0);

solve this particular problem?  If you're expecting an empty result set then 
when you "drain" it you should get 0 rows, so wouldn't this be an appropriate check?

Army


Mime
View raw message