cvs: pear /DB/DB mysqli.php
| From: | Daniel Convissor | Date: | Fri, 24 Dec 2004 20:22:38 +0000 |
| Subject: | cvs: pear /DB/DB mysqli.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-27810@lists.php.net to get a copy of this message | ||
danielc Fri Dec 24 15:22:38 2004 EDT
Modified files:
/pear/DB/DB mysqli.php
Log:
* Not necessary to call numRows() in simpleQuery()
because $num_rows property wasn't really needed
because number of rows can be determined directly
from mysqli API at any time.
http://cvs.php.net/diff.php/pear/DB/DB/mysqli.php?r1=1.35&r2=1.36&ty=u
Index: pear/DB/DB/mysqli.php
diff -u pear/DB/DB/mysqli.php:1.35 pear/DB/DB/mysqli.php:1.36
--- pear/DB/DB/mysqli.php:1.35 Fri Dec 24 14:56:32 2004
+++ pear/DB/DB/mysqli.php Fri Dec 24 15:22:38 2004
@@ -17,7 +17,7 @@
* @author Daniel Convissor <danielc@php.net>
* @copyright 1997-2004 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License
- * @version CVS: $Id: mysqli.php,v 1.35 2004/12/24 19:56:32 danielc Exp $
+ * @version CVS: $Id: mysqli.php,v 1.36 2004/12/24 20:22:38 danielc Exp $
* @link http://pear.php.net/package/DB
*/
@@ -285,12 +285,7 @@
if (!$result) {
return $this->mysqliRaiseError();
}
-# this next block is still sketchy..
if (is_object($result)) {
- $numrows = $this->numRows($result);
- if (is_object($numrows)) {
- return $numrows;
- }
return $result;
}
return DB_OK;