change DB_result::fetchRow to use extension fetchInto instead of

DB_result::fetchInto (speed improvement)
This commit is contained in:
Tomas V.V.Cox 2001-06-07 12:55:14 +00:00
parent 81af7edbd0
commit 50cb6e3733

View file

@ -600,7 +600,11 @@ class DB_result
*/ */
function fetchRow($fetchmode = DB_FETCHMODE_DEFAULT, $rownum=null) function fetchRow($fetchmode = DB_FETCHMODE_DEFAULT, $rownum=null)
{ {
$res = $this->fetchInto($arr, $fetchmode, $rownum); if ($fetchmode === DB_FETCHMODE_DEFAULT) {
$fetchmode = $this->dbh->fetchmode;
}
$res = $this->dbh->fetchInto($arr, $fetchmode, $rownum);
if ($res !== DB_OK) { if ($res !== DB_OK) {
return $res; return $res;
} }