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 » MDB2 » Bug #8857

Parameter $reverse for getColumnNames doesn't get the rigth result

Details

Submitted2006-10-05 09:17 UTC
Fromtbaecker at hiconsult dot de
Assignedlsmith
StatusClosed
PackageMDB2
PHP Version5.1.4
OSXP
Roadmaps(Not assigned)

Comments

[2006-10-05 09:17 UTC] tbaecker at hiconsult dot de

Description:
------------
Parameter $reverse for getColumnNames doesn't get the rigth result

Test script:
---------------
...
$sql= "SELECT * FROM user";
$x = $conObj->query($sql);
$colName = $x->getColumnNames(true);

print_r($colName);

get
Array ( [office] => 3 [mail] => 2 [user] => 1 [id] => 0)

Expected result:
----------------
get
Array ( [0] => id [1] => user [2] => mail [3] => office)