[redland-dev] Patch for QueryResults.java class

Attilio Fiandrotti fiandro at tiscali.it
Tue Jul 4 11:05:14 BST 2006


Dave Beckett wrote:
> 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

the patch seems ok to me, thanks to you!

Attilio


More information about the redland-dev mailing list