cvs: pear /MDB2/MDB2/Driver/Reverse mysqli.php
| From: | Lukas Smith | Date: | Sat, 14 Oct 2006 13:36:50 +0000 |
| Subject: | cvs: pear /MDB2/MDB2/Driver/Reverse mysqli.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-42546@lists.php.net to get a copy of this message | ||
lsmith Sat Oct 14 13:36:50 2006 UTC
Modified files:
/pear/MDB2/MDB2/Driver/Reverse mysqli.php
Log:
- typo fix in tableInfo (Bug #8925)
http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Reverse/mysqli.php?r1=1.50&r2=1.51&diff_format=u
Index: pear/MDB2/MDB2/Driver/Reverse/mysqli.php
diff -u pear/MDB2/MDB2/Driver/Reverse/mysqli.php:1.50 pear/MDB2/MDB2/Driver/Reverse/mysqli.php:1.51
--- pear/MDB2/MDB2/Driver/Reverse/mysqli.php:1.50 Mon Sep 25 23:39:35 2006
+++ pear/MDB2/MDB2/Driver/Reverse/mysqli.php Sat Oct 14 13:36:50 2006
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: mysqli.php,v 1.50 2006/09/25 23:39:35 lsmith Exp $
+// $Id: mysqli.php,v 1.51 2006/10/14 13:36:50 lsmith Exp $
//
require_once 'MDB2/Driver/Reverse/Common.php';
@@ -368,7 +368,7 @@
}
$resource = MDB2::isResultCommon($result) ? $result->getResource() : $result;
- if (!is_resource($resource)) {
+ if (!is_object($resource)) {
return $db->raiseError(MDB2_ERROR_NEED_MORE_DATA, null, null,
'Could not generate result resource', __FUNCTION__);
}
@@ -384,8 +384,7 @@
}
$count = @mysqli_num_fields($resource);
- $res = array();
-
+ $res = array();
if ($mode) {
$res['num_fields'] = $count;
}