use PMA_Table::sGetStatusInfo() for table information retrieval

This commit is contained in:
Sebastian Mendel
2008-12-10 09:22:29 +00:00
parent d650f5b74f
commit a059b08ce0
3 changed files with 20 additions and 30 deletions

View File

@@ -92,12 +92,9 @@ foreach ($the_tables as $key => $table) {
/**
* Gets table informations
*/
$result = PMA_DBI_query(
'SHOW TABLE STATUS LIKE \'' . PMA_sqlAddslashes($table, true) . '\';');
$showtable = PMA_DBI_fetch_assoc($result);
$showtable = PMA_Table::sGetStatusInfo($db, $table);
$num_rows = (isset($showtable['Rows']) ? $showtable['Rows'] : 0);
$show_comment = (isset($showtable['Comment']) ? $showtable['Comment'] : '');
PMA_DBI_free_result($result);
$tbl_is_view = PMA_Table::isView($db, $table);