Closed GoogleCodeExporter closed 9 years ago
this is an issue with rs.first() and rs.last() methods. I have commited the fix
into
subversion if you wish to checkout the latest code.
If you have the source, in ResultSet you can change the first()/last() methods
to the
following:
/**
* Moves the pointer to the first row
**/
public function first():Boolean
{
if ( rows.length == 0 )
{
index = -1;
return false;
}
index = 0;
initRow(index);
return true;
}
/**
* Moves the pointer to the last row.
**/
public function last():Boolean
{
if ( rows.length == 0 )
{
index = -1;
return false;
}
index = rows.length-1;
initRow(index);
return true;
}
Original comment by macl...@gmail.com
on 8 Aug 2008 at 7:30
Original comment by macl...@gmail.com
on 8 Aug 2008 at 7:31
Original comment by macl...@gmail.com
on 8 Aug 2008 at 7:32
Original comment by macl...@gmail.com
on 8 Aug 2008 at 7:33
Original comment by macl...@gmail.com
on 1 Mar 2010 at 2:48
Original issue reported on code.google.com by
will.per...@gmail.com
on 8 Aug 2008 at 6:10