Bug 8338

Summary: isLimitedByMaxRows() returns true even when it's not
Product: Taglibs Reporter: Hans Bergsten <hans>
Component: Standard TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: CLOSED FIXED    
Severity: critical    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Hans Bergsten 2002-04-21 02:39:50 UTC
If a startRow is specified, it seems like isLimitedByMaxRows() always returns
true, for instance, even if startRow is greater than the number of rows in the
ResultSet.
Comment 1 Hans Bergsten 2002-04-21 02:48:09 UTC
I forgot to mention that I also use the maxRows attribute. Example:

    <sql:query var="empList"
      sql="SELECT * FROM Employee ORDER BY LastName" 
      startRow="${param.start}" maxRows="2"
    />

No matter what value I use for startRow, isLimitedByMaxRows() returns true.
The spec may not be 100% clear about this case, but I assume the intention
is to reflect whether the number of rows in the Result object where cut
due to a maxRows limit or not. So if <= (startRow + maxRows) rows are returned,
it should return false.
Comment 2 Jan Luehe 2002-04-23 20:51:15 UTC
Fixed.