cvs: pear /MDB/MDB ibase.php

From: Date: Thu, 25 Sep 2003 07:53:27 +0000
Subject: cvs: pear /MDB/MDB ibase.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-13073@lists.php.net to get a copy of this message
quipo Thu Sep 25 03:53:27 2003 EDT Modified files: /pear/MDB/MDB ibase.php Log: fixing some more issues Index: pear/MDB/MDB/ibase.php diff -u pear/MDB/MDB/ibase.php:1.60 pear/MDB/MDB/ibase.php:1.61 --- pear/MDB/MDB/ibase.php:1.60 Wed Sep 24 19:49:06 2003 +++ pear/MDB/MDB/ibase.php Thu Sep 25 03:53:26 2003 @@ -42,7 +42,7 @@ // | Author: Lorenzo Alberton <l.alberton@quipo.it> | // +----------------------------------------------------------------------+ // -// $Id: ibase.php,v 1.60 2003/09/24 23:49:06 quipo Exp $ +// $Id: ibase.php,v 1.61 2003/09/25 07:53:26 quipo Exp $ require_once 'MDB/Common.php'; @@ -969,16 +969,17 @@ $this->results[$result_value]['current_row']++; $row = @ibase_fetch_assoc($result); if (!is_array($row)) { - return null; + break; } foreach ($row as $key => $value_with_space) { $row[strtolower($key)] = rtrim($value_with_space); } $this->results[$result_value][$this->results[$result_value]['current_row']] = $row; } - if ($fetchmode == MDB_FETCHMODE_ASSOC) { - //$row = $row; //WHAT IS THIS??? - } else { + if (!is_array($row)) { + return null; + } + if ($fetchmode !== MDB_FETCHMODE_ASSOC) { $row = array_values($row); } $this->results[$result_value]['highest_fetched_row'] =

« previous php.pear.cvs (#13073) next »