#41 Move[0] will set EOF to true when there is one row selected

Next_Version
closed-fixed
5
2006-02-09
2006-02-09
Rafi B.
No

I'm running ADOdb LITE, using the mysql driver. This
probably happens in the other mysql drivers as well. I
think I came across a bug, when I have a recordset with
one row in it, and then use the MoveFirst() function,
it sets the EOF flag to true, instead of false. For
example:

$rs = $db->Execute("SELECT * FROM customers");
if (!$rs->EOF) {
... do some stuff with $rs ...
}
$rs->MoveFirst(); // This is where EOF should be set to
false, but it is set to true! This happens only when
there's one row in recordset.

if (!$rs->EOF) {
... will never get here ...
}

Discussion

  • Mark Dickenson

    Mark Dickenson - 2006-02-09
    • milestone: --> Next_Version
    • status: open --> closed-fixed
     
  • Mark Dickenson

    Mark Dickenson - 2006-02-09

    Logged In: YES
    user_id=752816

    Please read the other bug reports before posting.

     

Log in to post a comment.