Home » Database » DB_QueryTool » Bug #1588
Error when instancing with no dsn
Details
| Submitted | 2004-06-09 02:14 UTC |
|---|---|
| From | abdul at solary dot net |
| Assigned | quipo |
| Status | Closed |
| Package | DB_QueryTool |
| PHP Version | 4.3.4 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2004-06-09 02:14 UTC] abdul at solary dot net
Description:
------------
If I instance a DB_Query object, i.e. to only using the query render functionality, the call fails.
Reproduce code:
---------------
$o = new selqry();
$o->table= 'table';
$o->addWhere('field1=value');
$o->addOrder('field1');
$o->getQueryString();
Expected result:
----------------
SELECT * FROM table WHERE field1=value AND ORDER BY field1
Actual result:
--------------
<b>Fatal error</b>: Call to a member function on a non-object in <b>/usr/share/pear/DB/QueryTool/Query.php</b> on line <b>1538</b><br />
[2004-06-11 15:54 UTC] abdul at solary dot net
It works as expected thank you.
--
jacg