PMA_DatabaseInterface::getColumnsFull() when used with empty database or table name causes the few keys to be incorrectly nested. For e.g.
$output = $GLOBALS['dbi']->getColumnsFull();
The $output here returns array something like this: http://pastebin.com/Ca4721yJ
i.e.
[database_name_1] => array(
[table_name_1] => array(
[Column_name_1] => array(
'Field' => [value],
'TABLE_NAME' => [value],
'COLUMN_NAME' => [value],
... // and other column properties
)
// Below part has problems
'Field' => [value],
'TABLE_NAME' => [value],
... // and other column properties are being added at table level
// causing problems to get table names properly.
// Also, if there is a table named 'Field' or 'TABLE_NAME'
// then the output gets more wierd.
I am not sure whether the fix should go to QA_4_2 or master branch.
PR (Sent to QA_4_2): https://github.com/phpmyadmin/phpmyadmin/pull/1223
Fix merged.