Home » Database » MDB » Bug #963
Notice: Undefined index: Key_name in /Modules/Manager/mysql.php on line 707
Details
| Submitted | 2004-03-07 20:07 UTC |
|---|---|
| From | thierrybo at freesurf dot fr |
| Assigned | lsmith |
| Status | Closed |
| Package | MDB |
| PHP Version | 4.3.2 |
| OS | win32XP |
| 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