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 » MDB_QueryTool » Bug #8398

wrong _buildSelect with * and mysqli driver

Details

Submitted2006-08-09 11:03 UTC
Fromsima at igldesign dot cz
Assignedquipo
StatusClosed
PackageMDB_QueryTool
PHP Version5.1.2
OSWindows 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.