Home » Database » MDB_QueryTool » Bug #8398
wrong _buildSelect with * and mysqli driver
Details
| Submitted | 2006-08-09 11:03 UTC |
|---|---|
| From | sima at igldesign dot cz |
| Assigned | quipo |
| Status | Closed |
| Package | MDB_QueryTool |
| PHP Version | 5.1.2 |
| OS | Windows XP SP2 |
| Roadmaps | (Not assigned) |
Comments
[2006-08-09 11:03 UTC] sima at igldesign dot cz
Description:
------------
class CObjectList extends MDB_QueryTool {
public $table = "xyz";
public $sequenceName = "xyz";
...
function somename() {
$this->setWhere('id_parent=1');
$ids = $this->getCol(); // return no results, generate wrong query select from...
}
...
}
Expected result:
----------------
wrong query
SELECT FROM ...
instead of
SELECT * FROM
[2006-08-09 11:32 UTC] sima at igldesign dot cz
please fix setDbInstance function. somebody dont use connect function but instead of it use setDbInstance with own connection.