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
----------------------
@@ -15,6 +15,8 @@ $Source$
themes/darkblue_orange/css/theme_left.css.php
themes/original/css/theme_left.css.php:
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>
* tbl_properties_links.php: invalid js confirmation and operation feedback

View File

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

View File

@@ -580,8 +580,11 @@ if ($fields_cnt > 20) {
} // end if ($fields_cnt > 20)
echo "\n\n";
if (!$tbl_is_view) {
// show table statistics only if
// 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
*/