Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004368 [Quercus] minor always 02-01-11 07:51 02-01-11 07:51
Reporter geleont View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version
Summary 0004368: pg_fetch_array(result, row, field); with row fiels set to null never go to next row
Description Minimal code to reproduce:
$sql = 'SELECT * FROM table ';
$result = pg_query($res, $sql);
while ($row = pg_fetch_array($result, NULL, PGSQL_ASSOC)) {
        print_r($row);
}
During research I found that this problem caused by this lines of code so
if (row.isNull()) {
        if (result.getPassedNullRow()) {
          result.setPassedNullRow();
        } else {
          // Step the cursor back to the previous position
          ResultSet rs = result.getResultSet();
          rs.previous();
        }
      }
as we can see result.setPassedNullRow(); never be executed
Also from researching quercus sources I found that we can set row argument equal -1 to make function work as expected
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
02-01-11 07:51 geleont New Issue


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
26 total queries executed.
24 unique queries executed.
Powered by Mantis Bugtracker