PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB » Bug #6583

Rearrange function paramenters of fetchInto and fetchRow

Details

Request #6583Rearrange function paramenters of fetchInto and fetchRow
Submitted2006-01-25 18:28 UTC
Fromdustymugs dot p at dspiral dot net
StatusWont fix
PackageDB
PHP Version4.4.1
OSLinux
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.