cvs: php4 /pear/DB ifx.php

From: Date: Tue, 24 Apr 2001 11:58:43 +0000
Subject: cvs: php4 /pear/DB ifx.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-87@lists.php.net to get a copy of this message
cox Tue Apr 24 04:58:43 2001 EDT Modified files: /php4/pear/DB ifx.php Log: don't return error on non-supported fetchmode (disturbs common::getAll) Index: php4/pear/DB/ifx.php diff -u php4/pear/DB/ifx.php:1.6 php4/pear/DB/ifx.php:1.7 --- php4/pear/DB/ifx.php:1.6 Sun Apr 22 10:09:57 2001 +++ php4/pear/DB/ifx.php Tue Apr 24 04:58:43 2001 @@ -174,18 +174,12 @@ if (!$row = @ifx_fetch_row($result, $rownum)) { return NULL; } - switch ($fetchmode){ - case DB_FETCHMODE_ASSOC: - break; - case DB_FETCHMODE_ORDERED: - $i=0; - foreach ($row as $key => $val) { - $order[$i++] = $val; - } - $row = $order; - break; - default: - return $this->raiseError(DB_ERROR_UNSUPPORTED); + if ($fetchmode & DB_FETCHMODE_ORDERED) { + $i=0; + foreach ($row as $key => $val) { + $order[$i++] = $val; + } + $row = $order; } return DB_OK; }

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