cvs: php4 /pear/DB oci8.php

From: Date: Sat, 19 Jan 2002 07:17:51 +0000
Subject: cvs: php4 /pear/DB oci8.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-2002@lists.php.net to get a copy of this message
cox Sat Jan 19 02:17:51 2002 EDT Modified files: /php4/pear/DB oci8.php Log: Removed unecesary check and only change the case of the keys when data is returned (fetchInto()) Index: php4/pear/DB/oci8.php diff -u php4/pear/DB/oci8.php:1.42 php4/pear/DB/oci8.php:1.43 --- php4/pear/DB/oci8.php:1.42 Sat Jan 5 23:36:32 2002 +++ php4/pear/DB/oci8.php Sat Jan 19 02:17:51 2002 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: oci8.php,v 1.42 2002/01/06 04:36:32 cox Exp $ +// $Id: oci8.php,v 1.43 2002/01/19 07:17:51 cox Exp $ // // Database independent query interface definition for PHP's Oracle 8 // call-interface extension. @@ -225,12 +225,9 @@ if ($rownum !== NULL) { return $this->raiseError(DB_ERROR_NOT_CAPABLE); } - if ($fetchmode == DB_FETCHMODE_DEFAULT) { - $fetchmode = $this->fetchmode; - } if ($fetchmode & DB_FETCHMODE_ASSOC) { $moredata = @OCIFetchInto($result,$arr,OCI_ASSOC+OCI_RETURN_NULLS+OCI_RETURN_LOBS); - if ($this->options['optimize'] == 'portability') { + if ($moredata && $this->options['optimize'] == 'portability') { $arr = array_change_key_case($arr, CASE_LOWER); } } else {

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