#1211 [Bgs]: Site docs for Db:tableInfo error
| From: | js at nexista dot com | Date: | Wed, 14 Apr 2004 23:12:56 +0000 |
| Subject: | #1211 [Bgs]: Site docs for Db:tableInfo error | ||
| References: | 1 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-3467@lists.php.net to get a copy of this message | ||
ID: 1211
User updated by: js at nexista dot com
Reported By: js at nexista dot com
Status: Bogus
Bug Type: Documentation
PHP Version: Irrelevant
Assigned To: danielc
New Comment:
I did not have latest version. Now it doesn't work at all.
It still accepts a table name but passing a result object
returns nothing. reverting back to old version.
Previous Comments:
------------------------------------------------------------------------
[2004-04-14 15:58:26] danielc at analysisandsolutions dot com
The manual is correct for current versions of DB -- meaning including
1.6.0 and greater.
If I get a moment I'll add a note to the docs about this.
Thanks.
------------------------------------------------------------------------
[2004-04-14 14:20:28] js at nexista dot com
Description:
------------
The docs for Db::tableInfo may be wrong. On page:
http://pear.php.net/manual/en/package.database.db.intro-fetch.php
at the very bottom example we have:
// Once you have a valid DB object named $db...
$res =& $db->query('SELECT * FROM phptest');
print_r($db->tableInfo($res));
however this does not work. You can pass a table name or call
tableInfo as a method of result object but this above returned
nothing on Mysql. This did:
print_r($res->tableInfo());
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=1211&edit=1