Home » Database » DB » Bug #6583
Rearrange function paramenters of fetchInto and fetchRow
Details
| Request #6583 | Rearrange function paramenters of fetchInto and fetchRow |
|---|---|
| Submitted | 2006-01-25 18:28 UTC |
| From | dustymugs dot p at dspiral dot net |
| Status | Wont fix |
| Package | DB |
| PHP Version | 4.4.1 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2006-01-25 18:28 UTC] dustymugs dot p at dspiral dot net
Description:
------------
It would be nice to have the parameter order of fetchRow() and fetchInto() changed from the current...
mixed &fetchRow ([integer $fetchmode = DB_DEFAULT_MODE [, integer $rownum = NULL]])
integer fetchInto (array &$arr [, integer $fetchMode = DB_FETCHMODE_DEFAULT [, integer $rowNum = NULL]])
to...
mixed &fetchRow ([integer $rownum = NULL [,integer $fetchmode = DB_DEFAULT_MODE ]])
integer fetchInto (array &$arr [, integer $rowNum = NULL [, integer $fetchMode = DB_FETCHMODE_DEFAULT ]])
where the $rownum is before the fetchmode. The only reason I ask is because I loop over a db result set multiple times with a for loop and never change the fetchmode.