diff options
author | Tomas V.V.Cox <cox@php.net> | 2001-06-07 12:55:14 +0000 |
---|---|---|
committer | Tomas V.V.Cox <cox@php.net> | 2001-06-07 12:55:14 +0000 |
commit | 50cb6e3733ec08dd30aa10cb11843730b0c9b58c (patch) | |
tree | e0aa2788c71589e19ae209a51739915b80600345 | |
parent | 81af7edbd0f3aaeb8c0ba4854fb3e4baad476d41 (diff) | |
download | php-git-50cb6e3733ec08dd30aa10cb11843730b0c9b58c.tar.gz |
change DB_result::fetchRow to use extension fetchInto instead of
DB_result::fetchInto (speed improvement)
-rw-r--r-- | pear/DB.php | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |