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 » Bug #350

sybase.php returns on fetchRow(DB_FETCHMODE_ASSOC) array with numerical AND str

Details

Submitted2003-12-04 01:28 UTC
Fromkonrek at gmx dot net
Assigneddanielc
StatusClosed
PackageDB
PHP Version4.3.3
OSlinux
Roadmaps(Not assigned)

Comments

[2003-12-04 01:28 UTC] konrek at gmx dot net

Description:
------------
on fetchRow(DB_FETCHMODE_ASSOC) you get with sybase
doubled array with numerical col-keys and string keys (col-names), not so with mysql, feature or bug?

Expected result:
----------------
array with only col-name-keys

Actual result:
--------------
Array ( [0] => 3 [id] => 3 [1] => Verleger [name] => Verleger [2] => 3 [3] => 12 [4] => 2 [5] => s [stepstyle] => s [6] => a:2:{s:6:\"tables\";s:11:\"Publisher P\";s:4:\"join\";s:27:\"R.Resource_ID=P.Resource_ID\";} [attributes] => a:2:{s:6:\"tables\";s:11:\"Publisher P\";s:4:\"join\";s:27:\"R.Resource_ID=P.Resource_ID\";} [7] => cms-journal [site] => cms-journal [left] => 3 [right] => 12 [parentId] => 2 )