FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=17422&edit=1

ID: 17422
Updated by: l.alberton@quipo.it
Reported By: josh at jjrosen dot net
Summary: Capitalization Errors in associative arrays
-Status: Open
+Status: Bogus
Type: Bug
Package: MDB2
Operating System: linux
Package Version: 2.4.1
PHP Version: 5.2.11
-Assigned To:
+Assigned To: quipo
Roadmap Versions:
New Comment:

-Status: Open
+Status: Bogus
-Assigned To:
+Assigned To: quipo
http://pear.php.net/manual/en/package.database.mdb2.intro-portability.php

MDB2_PORTABILITY_FIX_CASE


Previous Comments:
------------------------------------------------------------------------

[2010-05-20 20:27:22] jjrosen

Description:
------------
When using fetchRow with MDB2_FETCHMODE_ASSOC or
MDB2_FETCHMODE_OBJECT, the column names in the result sets
are missing the capitalization.

Test script:
---------------
$sql = "SELECT * FROM someTable";
$res = $MDB->query($sql);
$temp = $res->fetchRow(MDB_FETCHMODE_ASSOC);
print_r($temp);

Expected result:
----------------
Array
(
[ID] => 1
[playerName] => Joshua Rosen
[userName] => jjrosen
[password] => password
[email] => josh@jjrosen.net
)

Actual result:
--------------
Array
(
[id] => 1
[playername] => Joshua Rosen
[username] => jjrosen
[password] => password
[email] => josh@jjrosen.net
)

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMay 20, '10 at 7:48p
activeMay 20, '10 at 7:48p
posts1
users1
websitepear.php.net

1 user in discussion

L Alberton: 1 post

People

Translate

site design / logo © 2022 Grokbase