Fixed
Details
Details
Assignee
Pothys - MitrahSoft
Pothys - MitrahSoftReporter
Tim Parker
Tim ParkerPriority
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Created 18 January 2019 at 20:21
Updated 30 January 2019 at 17:38
Resolved 30 January 2019 at 11:05
Java code which use ResultSet methods (rs.beforeFirst(), then loop while rs.next() returns true) to loop over a query object... now encounters an extra row at the end of the loop
This code works as expected with 5.2.8.50 (it goes through the loop once, putting out a single line with '1'), but with 5.2.9.31, this puts out two lines.
rs = QueryNew("name,number");
queryAddRow(rs);
querySetCell(rs,"name","first");
querySetCell(rs,"number",1);
WriteDump(rs);
rs.beforeFirst();
i = 0;
while (rs.next() AND (i LT 5))
{
i = 1 + i;
WriteOutput("#i#<br />");
}