cvs: pear /MDB/MDB ibase.php
| From: | Lorenzo Alberton | Date: | Wed, 24 Sep 2003 23:49:07 +0000 |
| Subject: | cvs: pear /MDB/MDB ibase.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-13068@lists.php.net to get a copy of this message | ||
quipo Wed Sep 24 19:49:07 2003 EDT
Modified files:
/pear/MDB/MDB ibase.php
Log:
fixed bug in fetchRow():
extra spaces in CHARACTER fields weren't removed correctly
Index: pear/MDB/MDB/ibase.php
diff -u pear/MDB/MDB/ibase.php:1.59 pear/MDB/MDB/ibase.php:1.60
--- pear/MDB/MDB/ibase.php:1.59 Wed Sep 24 07:47:23 2003
+++ pear/MDB/MDB/ibase.php Wed Sep 24 19:49:06 2003
@@ -42,7 +42,7 @@
// | Author: Lorenzo Alberton <l.alberton@quipo.it> |
// +----------------------------------------------------------------------+
//
-// $Id: ibase.php,v 1.59 2003/09/24 11:47:23 quipo Exp $
+// $Id: ibase.php,v 1.60 2003/09/24 23:49:06 quipo Exp $
require_once 'MDB/Common.php';
@@ -977,7 +977,7 @@
$this->results[$result_value][$this->results[$result_value]['current_row']] = $row;
}
if ($fetchmode == MDB_FETCHMODE_ASSOC) {
- $row = $row;
+ //$row = $row; //WHAT IS THIS???
} else {
$row = array_values($row);
}
@@ -995,9 +995,9 @@
if (!is_array($row)) {
return null;
}
- foreach ($row as $key => $value_with_space) {
- $row[$key] = rtrim($value_with_space);
- }
+ }
+ foreach ($row as $key => $value_with_space) {
+ $row[$key] = rtrim($value_with_space);
}
if (isset($this->results[$result_value]['types'])) {
$row = $this->datatype->convertResultRow($result, $row);