Edit report at http://pear.php.net/bugs/bug.php?id=18685&edit=1
ID: 18685
Updated by: [email protected]
Reported By: lesblueleaves at gmail dot com
Summary: got a error when try to run the demo code in
MDB2_TableBrowser_Advanced Usage
-Status: Open
+Status: Duplicate
Type: Bug
Package: MDB2_TableBrowser
Operating System: win xp
Package Version: 0.1.2
PHP Version: 5.3.6
Roadmap Versions:
New Comment:
-Status: Open
+Status: Duplicate
Bug #18684
Previous Comments:
------------------------------------------------------------------------
[2011-07-25 08:42:51] lesblueleaves
Description:
------------
when w try to run the demo which you've given in
MDB2_TableBrowser_Advanced Usage.
here's the concering code:
//Hide the ID column and rename the column "TYPE" to "Animal Type"
$browser->selectColumns(array('name','type','lifespan'));
$browser->setColumnAlias('TYPE', 'ANIMAL TYPE');
$browser->getRows('name', 3, 5);
print "\n" . $browser->getLastSQL();
//Prints:SELECT `NAME`,`TYPE` AS `ANIMAL TYPE`,`LIFESPAN` FROM
tbl_animals
FATAL?ERROR:Object of class MDB2_TableBrowser_TableValidator could not
be converted to string in
C:\\PHP\\PEAR\\MDB2\\TableBrowser\\TableValidator.php on line 70
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18685&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.