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

Notice: Undefined index: Key_name in /Modules/Manager/mysql.php on line 707

Details

Submitted2004-03-07 20:07 UTC
Fromthierrybo at freesurf dot fr
Assignedlsmith
StatusClosed
PackageMDB
PHP Version4.3.2
OSwin32XP
Roadmaps(Not assigned)

Comments

[2004-03-07 20:07 UTC] thierrybo at freesurf dot fr

Description:
------------
This is related to the mysql 1.80.4.13 and /Modules/Manager/mysql.php 1.44.4.4 , but this may concerns other drivers too.

If we use 'portability' optimize option,

then if we call the 'getTableFieldDefinition' method,

then in /Modules/Manager/mysql.php on line 707, '$index['Key_name']' never exist
because in mysql.php line 1371 we lower case all array keys (-> '$index['key_name']' exist).

Thierry Bohorel

Reproduce code:
---------------
if ($index['Key_name'] == 'PRIMARY' && $index['Column_name'] == $field_name)

Expected result:
----------------
TRUE OR FALSE

Actual result:
--------------
Notice: Undefined index: Key_name