BUG in Move[0] when only one record selected?

Rafi B.
2006-02-09
2013-04-11
  • Rafi B.

    Rafi B. - 2006-02-09

    I'm running ADOdb LITE, using the mysql driver. 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 customer");
    if (!$rs->EOF) {
         ... do some stuff with $rs ...
    }
    $rs->MoveFirst(); // This is where EOF should be set to false, but it get set to true! Even with one row in recordset.

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

     
    • Rafi B.

      Rafi B. - 2006-02-09

      Whoops, meant to say that this happens only when there's ONLY ONE ROW in RECORDSET.

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks