Menu

#4454 (ok 4.2.4) PMA_DatabaseInterface::getColumnsFull() when called with no database or table parameter gives incorrectly nested keys.

4.2.3
fixed
nobody
None
1
2014-06-23
2014-06-12
No

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.

Discussion

  • Chirayu Chiripal

    I am not sure whether the fix should go to QA_4_2 or master branch.

     
  • Michal Čihař

    Michal Čihař - 2014-06-12
    • summary: PMA_DatabaseInterface::getColumnsFull() when called with no database or table parameter gives incorrectly nested keys. --> (ok 4.2.4) PMA_DatabaseInterface::getColumnsFull() when called with no database or table parameter gives incorrectly nested keys.
    • status: open --> resolved
    • Priority: 5 --> 1
     
  • Michal Čihař

    Michal Čihař - 2014-06-12

    Fix merged.

     
  • Marc Delisle

    Marc Delisle - 2014-06-23
    • Status: resolved --> fixed
     
MongoDB Logo MongoDB