cvs: pear /MDB2/MDB2/Driver/Reverse oci8.php

From: Date: Thu, 08 Jun 2006 18:15:29 +0000
Subject: cvs: pear /MDB2/MDB2/Driver/Reverse oci8.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-40571@lists.php.net to get a copy of this message
lsmith Thu Jun 8 18:15:29 2006 UTC Modified files: /pear/MDB2/MDB2/Driver/Reverse oci8.php Log: - tweaked last commit http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Driver/Reverse/oci8.php?r1=1.35&r2=1.36&diff_format=u Index: pear/MDB2/MDB2/Driver/Reverse/oci8.php diff -u pear/MDB2/MDB2/Driver/Reverse/oci8.php:1.35 pear/MDB2/MDB2/Driver/Reverse/oci8.php:1.36 --- pear/MDB2/MDB2/Driver/Reverse/oci8.php:1.35 Thu Jun 8 17:55:35 2006 +++ pear/MDB2/MDB2/Driver/Reverse/oci8.php Thu Jun 8 18:15:28 2006 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: oci8.php,v 1.35 2006/06/08 17:55:35 lsmith Exp $ +// $Id: oci8.php,v 1.36 2006/06/08 18:15:28 lsmith Exp $ // require_once 'MDB2/Driver/Reverse/Common.php'; @@ -402,26 +402,23 @@ * Probably received a result object. * Extract the result resource identifier. */ - $result = $result->getResource(); + $resource = $result->getResource(); } $res = array(); - $count = @OCINumCols($result); + $count = $result->numCols(); if ($mode) { $res['num_fields'] = $count; } for ($i = 0; $i < $count; $i++) { $column = array( 'table' => '', - 'name' => $case_func(@OCIColumnName($result, $i+1)), - 'type' => @OCIColumnType($result, $i+1), - 'length' => @OCIColumnSize($result, $i+1), + 'name' => $case_func(@OCIColumnName($resource, $i+1)), + 'type' => @OCIColumnType($resource, $i+1), + 'length' => @OCIColumnSize($resource, $i+1), 'flags' => '', ); - if (strtolower($column['name']) == 'mdb2rn') { - continue; - } $res[$i] = $column; $res[$i]['mdb2type'] = $db->datatype->mapNativeDatatype($res[$i]); if ($mode & MDB2_TABLEINFO_ORDER) {

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