Edit report at http://pear.php.net/bugs/bug.php?id=18684&edit=1
ID: 18684
Updated by: [email protected]
Reported By: lesblueleaves at gmail dot com
Summary: got a fatal error in MDB2_TableBrowser_TableValidator
-Status: Open
+Status: Feedback
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: Feedback
I don't suppose you could hunt around in the package a little more to
work out why
it's passing an MDB2_TableBrowser_TableValidator to formatIdentifier()
http://svn.php.net/viewvc/pear/packages/MDB2_TableBrowser/trunk/MDB2/TableBro
wser/TableValidator.php?revision=304448&view=markup#l70
I don't have a DB handy to work it out; and the test case below you've
given isn't
quite executable.
Previous Comments:
------------------------------------------------------------------------
[2011-07-25 08:36:33] 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=18684&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.