[redland-dev] Patch for QueryResults.java class

Dave Beckett dave at dajobe.org
Tue Jul 4 09:08:07 BST 2006


fiandro at tiscali.it wrote:
> Hi
> 
> Supposing queries are always executed like this in Java
> 
> QueryResults results =  q.execute(model);
> while( results.hasNext() ) {
> 	...
> 	results.next();
> };
> 
> Current implementation of QueryResult.next() will make the first 
> result to be reported twice, so i prepared the attached patch that 
> fixes the issue.

I applied something similar to your patch after puzzling what the old code
was trying to do (SVN r11020).  The replacement is simpler and seems the
right choice.

Thanks

Dave


More information about the redland-dev mailing list