Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.3

Bug #14863 Fatal error: Call to a member function quoteIdentifier() on a non-object
Submitted: 2008-10-25 06:16 UTC
From: doconnor Assigned: quipo
Status: Closed Package: MDB_QueryTool (version 1.2.2)
PHP Version: 5.2.4 OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 39 + 19 = ?

 
 [2008-10-25 06:16 UTC] doconnor (Daniel O'Connor)
Description: ------------ See Bug #14862 The exact same problem exists in MDB_QueryTool

Comments

 [2008-10-25 06:17 UTC] doconnor (Daniel O'Connor)
Fatal error: Call to a member function quoteIdentifier() on a non-object in /usr/share/php/MDB/QueryTool/Query.php on line 1634 Call Stack: 0.0012 62108 1. {main}() /home/clockwerx/foo.php:0 0.1335 2149540 2. MDB_QueryTool_Query->getQueryString() /home/clockwerx/foo.php:10 0.1335 2149540 3. MDB_QueryTool_Query->_buildSelectQuery() /usr/share/php/MDB/QueryTool/Query.php:611 0.1345 2149856 4. MDB_QueryTool_Query->_buildSelect() /usr/share/php/MDB/QueryTool/Query.php:2338 0.1346 2150116 5. MDB_QueryTool_Query->_quoteIdentifier() /usr/share/php/MDB/QueryTool/Query.php:2160
 [2008-10-25 06:17 UTC] doconnor (Daniel O'Connor)
Reproduce script <?php require_once 'MDB/QueryTool.php'; $dsn = 'mysql://user:pass@server/db'; $Query = new MDB_QueryTool_Query($dsn); $Query->setTable('users'); $Query->setSelect('user_id'); $Query->addSelect('username'); $Query->setOrder('user_id', true); $Query->setLimit(0,1); $sql = $Query->getQueryString(); echo $sql, "\n";
 [2008-11-09 18:07 UTC] selniff (Sam Elniff)
I had the exact problem just last night (Nov 8,2008). I have MDB_QueryTool installed on my local machine and on my hosting server. After comparing file sizes of both installations, I determined that nothing had changed. Make sure that you can connect to your database using the supplied in the $dsn.
 [2008-11-09 19:17 UTC] quipo (Lorenzo Alberton)
I applied Daniel's patch to CVS. Please test.