PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB_QueryTool » Bug #2007

Doesn't support using an existing DB object, but the docs says it should

Details

Submitted2004-07-28 21:13 UTC
Fromeln at gmx dot net
Assignedquipo
StatusClosed
PackageDB_QueryTool
PHP VersionIrrelevant
OSLinux
Roadmaps(Not assigned)

Comments

[2004-07-28 21:13 UTC] eln at gmx dot net

Description:
------------
Using an existing DB object with DB_QueryTool (instead of
passing it a DSN) is not possible, even though the inline
documentation says it will.

It's a very simple thing to fix, and I've uploaded a patch
(against CVS) here: http://ununique.net/div/Query.php.diff

Works for me, anyway!

Reproduce code:
---------------
$db = DB::connect("mysql://user:pass@localhost/db");

$querytool = new DB_QueryTool($db);