cvs: pear /MDB/MDB ibase.php
| From: | Lukas Smith | Date: | Tue, 23 Sep 2003 14:21:29 +0000 |
| Subject: | cvs: pear /MDB/MDB ibase.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-13019@lists.php.net to get a copy of this message | ||
lsmith Tue Sep 23 10:21:29 2003 EDT
Modified files:
/pear/MDB/MDB ibase.php
Log:
fix to endOfResult
Index: pear/MDB/MDB/ibase.php
diff -u pear/MDB/MDB/ibase.php:1.56 pear/MDB/MDB/ibase.php:1.57
--- pear/MDB/MDB/ibase.php:1.56 Tue Sep 23 09:42:57 2003
+++ pear/MDB/MDB/ibase.php Tue Sep 23 10:21:29 2003
@@ -42,7 +42,7 @@
// | Author: Lorenzo Alberton <l.alberton@quipo.it> |
// +----------------------------------------------------------------------+
//
-// $Id: ibase.php,v 1.56 2003/09/23 13:42:57 lsmith Exp $
+// $Id: ibase.php,v 1.57 2003/09/23 14:21:29 lsmith Exp $
require_once 'MDB/Common.php';
@@ -629,7 +629,6 @@
* respective numbers of the columns starting from 0. Some DBMS may
* not return any columns when the result set does not contain any
* rows.
- * a MDB error on failure
* @access public
*/
function getColumnNames($result)
@@ -643,8 +642,8 @@
$this->results[$result_value]['columns'] = array();
$columns = ibase_num_fields($result);
for ($column=0; $column<$columns; $column++) {
- $column_info = ibase_field_info($result, $column);
-
$this->results[$result_value]['columns'][strtolower($column_info["name"])] =
$column;
+ $column_info = strtolower(ibase_field_info($result, $column));
+
$this->results[$result_value]['columns'][$column_info["name"]] = $column;
}
}
return $this->results[$result_value]['columns'];
@@ -704,9 +703,7 @@
return true;
}
}
- $row = @ibase_fetch_assoc($result);
- $row = array_change_key_case($row);
- if (is_array($row = @ibase_fetch_row($result))) {
+ if (is_array($row = @ibase_fetch_assoc($result))) {
$this->results[$result_value]['row_buffer'] = $row;
return false;
}
@@ -754,7 +751,6 @@
if ($this->options['result_buffering']) {
$result_value = intval($result);
if (!isset($this->results[$result_value]['rows'])) {
- $getcolumnnames = $this->getColumnNames($result);
if (isset($this->results[$result_value]['limits'])) {
$skipfirstrow = $this->_skipLimitOffset($result);
if (MDB::isError($skipfirstrow)) {