Home » Database » DB » Bug #350
sybase.php returns on fetchRow(DB_FETCHMODE_ASSOC) array with numerical AND str
Details
| Submitted | 2003-12-04 01:28 UTC |
|---|---|
| From | konrek at gmx dot net |
| Assigned | danielc |
| Status | Closed |
| Package | DB |
| PHP Version | 4.3.3 |
| OS | linux |
| 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 )