Home » Database » DB_QueryTool » Bug #2007
Doesn't support using an existing DB object, but the docs says it should
Details
| Submitted | 2004-07-28 21:13 UTC |
|---|---|
| From | eln at gmx dot net |
| Assigned | quipo |
| Status | Closed |
| Package | DB_QueryTool |
| PHP Version | Irrelevant |
| OS | Linux |
| 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);