cvs: php4 /pear/DB ifx.php
| From: | Thomas V.V.Cox | Date: | Wed, 25 Apr 2001 00:34:57 +0000 |
| Subject: | cvs: php4 /pear/DB ifx.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-89@lists.php.net to get a copy of this message | ||
cox Tue Apr 24 17:34:57 2001 EDT
Modified files:
/php4/pear/DB ifx.php
Log:
every fetchmode != assoc defaults to ordered
Index: php4/pear/DB/ifx.php
diff -u php4/pear/DB/ifx.php:1.7 php4/pear/DB/ifx.php:1.8
--- php4/pear/DB/ifx.php:1.7 Tue Apr 24 04:58:43 2001
+++ php4/pear/DB/ifx.php Tue Apr 24 17:34:57 2001
@@ -172,14 +172,15 @@
}
// if $rownum is null, fetch row will return the next row
if (!$row = @ifx_fetch_row($result, $rownum)) {
- return NULL;
+ return null;
}
- if ($fetchmode & DB_FETCHMODE_ORDERED) {
+ if ($fetchmode !== DB_FETCHMODE_ASSOC) {
$i=0;
+ $order = array();
foreach ($row as $key => $val) {
$order[$i++] = $val;
}
- $row = $order;
+ $row = &$order;
}
return DB_OK;
}