Subject Re: [Firebird-Java] strange code in org.firebirdsql.jdbc.FBStatementFetcher.fetch()
Author Roman Rokytskyy
> I was playing around with jaybird-2.0.1 and noticed something strange
> in org.firebirdsql.jdbc.FBStatementFetcher.fetch().
>
> The lines of code that bother me are these:

> int maxRows = 0;
> if (maxRows != 0) maxRows = this.maxRows - rowNum;

This is most likely a bug that should be changed to

if (this.maxRows != 0) maxRows = this.maxRows - rowNum;

I assume that currently ResultSet ignores setting of maxRows. I will have a
look somewhere in the mid of January.

Roman