Do not fail on broken table.
This commit is contained in:
@@ -28,6 +28,7 @@ $Source$
|
|||||||
* libraries/sqlparser.lib.php, lang/*: Report syntax error when there is
|
* libraries/sqlparser.lib.php, lang/*: Report syntax error when there is
|
||||||
a broken comment (bug #905066).
|
a broken comment (bug #905066).
|
||||||
* db_details_structure.php: Fixed colspan.
|
* db_details_structure.php: Fixed colspan.
|
||||||
|
* tbl_properties_table_info.php: Do not fail on broken table.
|
||||||
|
|
||||||
2004-05-12 Marc Delisle <lem9@users.sourceforge.net>
|
2004-05-12 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* db_details_structure.php: bug #951143, undefined $header_url_qry
|
* db_details_structure.php: bug #951143, undefined $header_url_qry
|
||||||
|
@@ -17,13 +17,13 @@ PMA_checkParameters(array('db', 'table'));
|
|||||||
// The 'show table' statement works correct since 3.23.03
|
// The 'show table' statement works correct since 3.23.03
|
||||||
$table_info_result = PMA_DBI_query('SHOW TABLE STATUS LIKE \'' . PMA_sqlAddslashes($table, TRUE) . '\';');
|
$table_info_result = PMA_DBI_query('SHOW TABLE STATUS LIKE \'' . PMA_sqlAddslashes($table, TRUE) . '\';');
|
||||||
$showtable = PMA_DBI_fetch_assoc($table_info_result);
|
$showtable = PMA_DBI_fetch_assoc($table_info_result);
|
||||||
$tbl_type = strtoupper($showtable['Type']);
|
$tbl_type = isset($showtable['Type']) ? strtoupper($showtable['Type']) : '';
|
||||||
$tbl_collation = empty($showtable['Collation']) ? '' : $showtable['Collation'];
|
$tbl_collation = empty($showtable['Collation']) ? '' : $showtable['Collation'];
|
||||||
$table_info_num_rows = (isset($showtable['Rows']) ? $showtable['Rows'] : 0);
|
$table_info_num_rows = (isset($showtable['Rows']) ? $showtable['Rows'] : 0);
|
||||||
$show_comment = (isset($showtable['Comment']) ? $showtable['Comment'] : '');
|
$show_comment = (isset($showtable['Comment']) ? $showtable['Comment'] : '');
|
||||||
$auto_increment = (isset($showtable['Auto_increment']) ? $showtable['Auto_increment'] : '');
|
$auto_increment = (isset($showtable['Auto_increment']) ? $showtable['Auto_increment'] : '');
|
||||||
|
|
||||||
$tmp = explode(' ', $showtable['Create_options']);
|
$tmp = isset($showtable['Create_options']) ? explode(' ', $showtable['Create_options']) : array();
|
||||||
$tmp_cnt = count($tmp);
|
$tmp_cnt = count($tmp);
|
||||||
for ($i = 0; $i < $tmp_cnt; $i++) {
|
for ($i = 0; $i < $tmp_cnt; $i++) {
|
||||||
$tmp1 = explode('=', $tmp[$i]);
|
$tmp1 = explode('=', $tmp[$i]);
|
||||||
|
Reference in New Issue
Block a user