From: Tomas V.V.Cox Date: Thu, 7 Jun 2001 12:55:14 +0000 (+0000) Subject: change DB_result::fetchRow to use extension fetchInto instead of X-Git-Tag: PRE_GRANULAR_GARBAGE_FIX~108 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=50cb6e3733ec08dd30aa10cb11843730b0c9b58c;p=php change DB_result::fetchRow to use extension fetchInto instead of DB_result::fetchInto (speed improvement) --- diff --git a/pear/DB.php b/pear/DB.php index 1c7a6f1d76..ff6166b652 100644 --- a/pear/DB.php +++ b/pear/DB.php @@ -600,7 +600,11 @@ class DB_result */ 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) { return $res; }