cvs: pear /DB/DB mysqli.php
| From: | Daniel Convissor | Date: | Thu, 29 Apr 2004 20:31:25 +0000 |
| Subject: | cvs: pear /DB/DB mysqli.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-18981@lists.php.net to get a copy of this message | ||
danielc Thu Apr 29 16:31:25 2004 EDT
Modified files:
/pear/DB/DB mysqli.php
Log:
Make tableInfo() work.
http://cvs.php.net/diff.php/pear/DB/DB/mysqli.php?r1=1.23&r2=1.24&ty=u
Index: pear/DB/DB/mysqli.php
diff -u pear/DB/DB/mysqli.php:1.23 pear/DB/DB/mysqli.php:1.24
--- pear/DB/DB/mysqli.php:1.23 Thu Apr 29 16:15:43 2004
+++ pear/DB/DB/mysqli.php Thu Apr 29 16:31:23 2004
@@ -16,7 +16,7 @@
// | Author: Daniel Convissor <danielc@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: mysqli.php,v 1.23 2004/04/29 20:15:43 danielc Exp $
+// $Id: mysqli.php,v 1.24 2004/04/29 20:31:23 danielc Exp $
// EXPERIMENTAL
@@ -33,7 +33,7 @@
* Note that persistent connections no longer exist.
*
* @package DB
- * @version $Id: mysqli.php,v 1.23 2004/04/29 20:15:43 danielc Exp $
+ * @version $Id: mysqli.php,v 1.24 2004/04/29 20:31:23 danielc Exp $
* @category Database
* @author Daniel Convissor <danielc@php.net>
*/
@@ -770,8 +770,8 @@
* Probably received a table name.
* Create a result resource identifier.
*/
- $id = @mysqli_list_fields($this->dsn['database'],
- $result, $this->connection);
+ $id = @mysqli_query($this->connection,
+ "SELECT * FROM $result LIMIT 0");
$got_string = true;
} else {
/*
@@ -783,7 +783,7 @@
$got_string = false;
}
- if (!is_resource($id)) {
+ if (!is_a($id, 'mysqli_result')) {
return $this->mysqlRaiseError(DB_ERROR_NEED_MORE_DATA);
}