diff --git a/tbl_structure.php b/tbl_structure.php index 99c59d558f..032f5f7db0 100644 --- a/tbl_structure.php +++ b/tbl_structure.php @@ -194,11 +194,8 @@ $fields = (array) $GLOBALS['dbi']->getColumns($db, $table, null, true); // and SHOW CREATE TABLE says NOT NULL (tested // in MySQL 4.0.25 and 5.0.21, http://bugs.mysql.com/20910). -$show_create_table = $GLOBALS['dbi']->fetchValue( - 'SHOW CREATE TABLE ' . PMA_Util::backquote($db) . '.' - . PMA_Util::backquote($table), - 0, 1 -); +$tableObj = new PMA_Table($table, $db); +$show_create_table = $tableObj->showCreate(); $parser = new SqlParser\Parser($show_create_table); /**