cvs: pear /MDB2/MDB2/Driver/Reverse oci8.php
| From: | Lukas Smith | Date: | Mon, 25 Sep 2006 23:38:46 +0000 |
| Subject: | cvs: pear /MDB2/MDB2/Driver/Reverse oci8.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-42233@lists.php.net to get a copy of this message | ||
lsmith Mon Sep 25 23:38:46 2006 UTC
Modified files:
/pear/MDB2/MDB2/Driver/Reverse oci8.php
Log:
- fixed getting the number of columns in tableInfo() when a resource is passed to the method
http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Reverse/oci8.php?r1=1.46&r2=1.47&diff_format=u
Index: pear/MDB2/MDB2/Driver/Reverse/oci8.php
diff -u pear/MDB2/MDB2/Driver/Reverse/oci8.php:1.46 pear/MDB2/MDB2/Driver/Reverse/oci8.php:1.47
--- pear/MDB2/MDB2/Driver/Reverse/oci8.php:1.46 Mon Sep 25 23:02:11 2006
+++ pear/MDB2/MDB2/Driver/Reverse/oci8.php Mon Sep 25 23:38:46 2006
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: oci8.php,v 1.46 2006/09/25 23:02:11 justinpatrin Exp $
+// $Id: oci8.php,v 1.47 2006/09/25 23:38:46 lsmith Exp $
//
require_once 'MDB2/Driver/Reverse/Common.php';
@@ -339,7 +339,7 @@
$case_func = 'strval';
}
- $count = $result->numCols();
+ $count = @OCINumCols($resource);
$res = array();
if ($mode) {