mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
change DB_result::fetchRow to use extension fetchInto instead of
DB_result::fetchInto (speed improvement)
This commit is contained in:
parent
81af7edbd0
commit
50cb6e3733
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue