cvs: pear /MDB/MDB ibase.php oci8.php

From: Date: Tue, 23 Sep 2003 12:56:53 +0000
Subject: cvs: pear /MDB/MDB ibase.php oci8.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-13013@lists.php.net to get a copy of this message
lsmith Tue Sep 23 08:56:53 2003 EDT Modified files: /pear/MDB/MDB oci8.php ibase.php Log: cleanups for resultIsNull() and fetch() Index: pear/MDB/MDB/oci8.php diff -u pear/MDB/MDB/oci8.php:1.56 pear/MDB/MDB/oci8.php:1.57 --- pear/MDB/MDB/oci8.php:1.56 Mon Sep 22 07:06:09 2003 +++ pear/MDB/MDB/oci8.php Tue Sep 23 08:56:53 2003 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ -// $Id: oci8.php,v 1.56 2003/09/22 11:06:09 lsmith Exp $ +// $Id: oci8.php,v 1.57 2003/09/23 12:56:53 lsmith Exp $ require_once 'MDB/Common.php'; @@ -802,18 +802,11 @@ */ function resultIsNull($result, $rownum, $field) { - $result_value = intval($result); - if (MDB::isError($column = $this->_getColumn($result, $field))) { - return $column; + $value = $this->fetch($result, $rownum, $field); + if (MDB::isError($value)) { + return $value; } - $row = $this->fetchRow($result, MDB_FETCHMODE_ORDERED, $rownum); - if (MDB::isError($row)) { - return $row; - } - $this->results[$result_value]['highest_fetched_row'] = - max($this->results[$result_value]['highest_fetched_row'], $rownum); - $this->results[$result_value][$rownum][$column] = $row; - return !isset($this->results[$result_value][$rownum][$column]); + return !isset($value); } // }}} @@ -942,7 +935,6 @@ */ function fetch($result, $rownum = 0, $field = 0) { - $result_value = intval($result); if (MDB::isError($column = $this->_getColumn($result, $field))) { return $column; } Index: pear/MDB/MDB/ibase.php diff -u pear/MDB/MDB/ibase.php:1.54 pear/MDB/MDB/ibase.php:1.55 --- pear/MDB/MDB/ibase.php:1.54 Mon Sep 22 08:02:50 2003 +++ pear/MDB/MDB/ibase.php Tue Sep 23 08:56:53 2003 @@ -42,7 +42,7 @@ // | Author: Lorenzo Alberton <l.alberton@quipo.it> | // +----------------------------------------------------------------------+ // -// $Id: ibase.php,v 1.54 2003/09/22 12:02:50 quipo Exp $ +// $Id: ibase.php,v 1.55 2003/09/23 12:56:53 lsmith Exp $ require_once 'MDB/Common.php'; @@ -732,18 +732,11 @@ */ function resultIsNull($result, $rownum, $field) { - $result_value = intval($result); - if (MDB::isError($column = $this->_getColumn($result, $field))) { - return $column; + $value = $this->fetch($result, $rownum, $field); + if (MDB::isError($value)) { + return $value; } - $row = $this->fetchRow($result, MDB_FETCHMODE_ORDERED, $rownum); - if (MDB::isError($row)) { - return $row; - } - $this->results[$result_value]['highest_fetched_row'] = - max($this->results[$result_value]['highest_fetched_row'], $rownum); - $this->results[$result_value][$rownum][$column] = $row; - return !isset($this->results[$result_value][$rownum][$column]); + return !isset($value); } // }}} @@ -904,7 +897,6 @@ */ function fetch($result, $rownum = 0, $field = 0) { - $result_value = intval($result); if (MDB::isError($column = $this->_getColumn($result, $field))) { return $column; }

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