PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB_QueryTool » Bug #1588

Error when instancing with no dsn

Details

Submitted2004-06-09 02:14 UTC
Fromabdul at solary dot net
Assignedquipo
StatusClosed
PackageDB_QueryTool
PHP Version4.3.4
OSLinux
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