Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.12.3

Bug #598 IFX fetchrow() broken
Submitted: 2004-01-19 16:51 UTC
From: andres at alleati dot com Assigned: danielc
Status: Closed Package: DB
PHP Version: 4.3.2 OS: win2000
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 36 - 20 = ?

 
 [2004-01-19 16:51 UTC] andres at alleati dot com
Description: ------------ While testing some code using the ifx driver, i noticed that fetchRow() returned the same row everytime it was called. I went to the file ifx.php and changed the call to "ifx_fetch_row" in the "fetchInto" method: line 227: if (!$row = @ifx_fetch_row($result, $rownum)) { to if (!$row = @ifx_fetch_row($result, "NEXT")) { I am pretty sure this is not the way to solve it but it is what i did untill there is an official bugfix. Reproduce code: --------------- [...] $dsn = "ifx://user:pass@host/dbname"; [...] while ($row = $result->fetchRow()){ echo $row['id'].'<br>'; } Expected result: ---------------- 16<br> 17<br> 18<br> 19<br> 20<br> 21<br> Actual result: -------------- 16<br> 16<br> 16<br> 16<br> 16<br> 16<br> 16<br> 16<br> 16<br> 16<br> 16<br> (untile time out is reached)

Comments

 [2004-01-22 20:11 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-01-22 21:43 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-01-27 18:03 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!