diff --git a/libraries/structure.lib.php b/libraries/structure.lib.php index 414b48c1c1..247e3a9446 100644 --- a/libraries/structure.lib.php +++ b/libraries/structure.lib.php @@ -2488,27 +2488,6 @@ function PMA_displayHtmlForColumnChange($db, $table, $selected, $action) $GLOBALS['action'] = 'tbl_structure.php'; $GLOBALS['num_fields'] = $num_fields; - // Get more complete field information. - // For now, this is done to obtain MySQL 4.1.2+ new TIMESTAMP options - // and to know when there is an empty DEFAULT value. - // Later, if the analyser returns more information, it - // could be executed to replace the info given by SHOW FULL COLUMNS FROM. - /** - * @todo put this code into a require() - * or maybe make it part of $GLOBALS['dbi']->getColumns(); - */ - - // We also need this to correctly learn if a TIMESTAMP is NOT NULL, since - // SHOW FULL COLUMNS says NULL and SHOW CREATE TABLE says NOT NULL (tested - // in MySQL 4.0.25). - - $show_create_table = $GLOBALS['dbi']->fetchValue( - 'SHOW CREATE TABLE ' . PMA_Util::backquote($db) . '.' - . PMA_Util::backquote($table), - 0, 1 - ); - $analyzed_sql = PMA_SQP_analyze(PMA_SQP_parse($show_create_table)); - unset($show_create_table); /** * Form for changing properties. */