no table statistics for information_schema

This commit is contained in:
Sebastian Mendel
2005-10-11 13:57:47 +00:00
parent 694f7ef519
commit 8b6facdf39
3 changed files with 258 additions and 248 deletions

View File

@@ -1,4 +1,4 @@
---------------------- ----------------------
phpMyAdmin - Changelog phpMyAdmin - Changelog
---------------------- ----------------------
@@ -15,6 +15,8 @@ $Source$
themes/darkblue_orange/css/theme_left.css.php themes/darkblue_orange/css/theme_left.css.php
themes/original/css/theme_left.css.php: themes/original/css/theme_left.css.php:
XHTML 1.0 trans. compliance and more semantic XHTML output XHTML 1.0 trans. compliance and more semantic XHTML output
* tbl_printview.php, tbl_properties_structure.php:
no table statistics for information_schema
2005-10-09 Marc Delisle <lem9@users.sourceforge.net> 2005-10-09 Marc Delisle <lem9@users.sourceforge.net>
* tbl_properties_links.php: invalid js confirmation and operation feedback * tbl_properties_links.php: invalid js confirmation and operation feedback

View File

@@ -260,6 +260,11 @@ foreach ($the_tables AS $key => $table) {
<?php <?php
if ( ! $tbl_is_view
&& ( $db != 'information_schema'
|| PMA_MYSQL_INT_VERSION < 50002 ) ) {
/** /**
* Displays indexes * Displays indexes
*/ */
@@ -269,11 +274,11 @@ foreach ($the_tables AS $key => $table) {
if ($index_count > 0) { if ($index_count > 0) {
echo "\n"; echo "\n";
?> ?>
<br /><br /> <br /><br />
<!-- Indexes --> <!-- Indexes -->
&nbsp;<big><?php echo $strIndexes . ':'; ?></big> &nbsp;<big><?php echo $strIndexes . ':'; ?></big>
<table bordercolorlight="black" border="border" style="border-collapse: collapse; background-color: white"> <table bordercolorlight="black" border="border" style="border-collapse: collapse; background-color: white">
<tr> <tr>
<th><?php echo $strKeyname; ?></th> <th><?php echo $strKeyname; ?></th>
<th><?php echo $strType; ?></th> <th><?php echo $strType; ?></th>
@@ -285,7 +290,7 @@ foreach ($the_tables AS $key => $table) {
PMA_show_indexes($table, $indexes, $indexes_info, $indexes_data, true, true); PMA_show_indexes($table, $indexes, $indexes_info, $indexes_data, true, true);
echo "\n"; echo "\n";
?> ?>
</table> </table>
<?php <?php
echo "\n"; echo "\n";
} // end display indexes } // end display indexes
@@ -326,10 +331,10 @@ foreach ($the_tables AS $key => $table) {
// Displays them // Displays them
?> ?>
<br /><br /> <br /><br />
<table border="0" cellspacing="0" cellpadding="0" class="noborder"> <table border="0" cellspacing="0" cellpadding="0" class="noborder">
<tr> <tr>
<!-- Space usage --> <!-- Space usage -->
<td class="print" valign="top"> <td class="print" valign="top">
@@ -513,13 +518,13 @@ foreach ($the_tables AS $key => $table) {
?> ?>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
<?php <?php
} // end if ($nonisam == FALSE) } // end if ($nonisam == FALSE)
} // end if ($cfg['ShowStats']) } // end if ($cfg['ShowStats'])
}
echo "\n"; echo "\n";
if ($multi_tables) { if ($multi_tables) {
unset($ret_keys); unset($ret_keys);

View File

@@ -580,8 +580,11 @@ if ($fields_cnt > 20) {
} // end if ($fields_cnt > 20) } // end if ($fields_cnt > 20)
echo "\n\n"; echo "\n\n";
// show table statistics only if
if (!$tbl_is_view) { // this is not a view and not the information_schema (MySQL >= 5.00.02)
if ( ! $tbl_is_view
&& ( $db != 'information_schema'
|| PMA_MYSQL_INT_VERSION < 50002 ) ) {
/** /**
* Displays indexes * Displays indexes
*/ */