Anonymous | Login | Signup for a new account | 11-24-2024 13:32 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ 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 | Platform | ||||||||
Status | new | OS | ||||||||||
Projection | none | OS Version | ||||||||||
ETA | none | Fixed in Version | Product Version | |||||||||
Product Build | ||||||||||||
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 |
|||||||||||
Steps To Reproduce | ||||||||||||
Additional Information | ||||||||||||
Attached Files | ||||||||||||
|
There are no notes attached to this issue. |
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
26 total queries executed. 24 unique queries executed. |