From 50cb6e3733ec08dd30aa10cb11843730b0c9b58c Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Thu, 7 Jun 2001 12:55:14 +0000 Subject: [PATCH] change DB_result::fetchRow to use extension fetchInto instead of DB_result::fetchInto (speed improvement) --- pear/DB.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- 2.50.1