cvs: pear /MDB2/MDB2/Driver/Reverse oci8.php
| From: | Lukas Smith | Date: | Thu, 08 Jun 2006 17:55:35 +0000 |
| Subject: | cvs: pear /MDB2/MDB2/Driver/Reverse oci8.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-40570@lists.php.net to get a copy of this message | ||
lsmith Thu Jun 8 17:55:35 2006 UTC
Modified files:
/pear/MDB2/MDB2/Driver/Reverse oci8.php
Log:
- make sure no additional fields are added due to using limit/offset
http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Driver/Reverse/oci8.php?r1=1.34&r2=1.35&diff_format=u
Index: pear/MDB2/MDB2/Driver/Reverse/oci8.php
diff -u pear/MDB2/MDB2/Driver/Reverse/oci8.php:1.34 pear/MDB2/MDB2/Driver/Reverse/oci8.php:1.35
--- pear/MDB2/MDB2/Driver/Reverse/oci8.php:1.34 Wed May 31 14:38:07 2006
+++ pear/MDB2/MDB2/Driver/Reverse/oci8.php Thu Jun 8 17:55:35 2006
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: oci8.php,v 1.34 2006/05/31 14:38:07 lsmith Exp $
+// $Id: oci8.php,v 1.35 2006/06/08 17:55:35 lsmith Exp $
//
require_once 'MDB2/Driver/Reverse/Common.php';
@@ -412,13 +412,17 @@
$res['num_fields'] = $count;
}
for ($i = 0; $i < $count; $i++) {
- $res[$i] = array(
+ $column = array(
'table' => '',
'name' => $case_func(@OCIColumnName($result, $i+1)),
'type' => @OCIColumnType($result, $i+1),
'length' => @OCIColumnSize($result, $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) {
$res['order'][$res[$i]['name']] = $i;