- added PMA_DBI_get_default_engine()

- display default engine in table list footer
This commit is contained in:
Sebastian Mendel
2005-11-09 10:06:38 +00:00
parent 714c4c76d4
commit 713f2d4836
3 changed files with 97 additions and 82 deletions

View File

@@ -8,7 +8,10 @@ $Source$
2005-11-09 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* server_databases.php, mysql_charsets-lib.php:
bug #1351743 undefined function: pma_getservercollation()
* db_details_structure.php: fixed display issues
* database_interface.lib.php: added PMA_DBI_get_default_engine()
* db_details_structure.php:
- fixed display issues
- display default engine in footer
2005-11-08 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* Documentation.html, browse_foreigners.php, error.php,

View File

@@ -366,18 +366,17 @@ if ($cfg['ShowStats']) {
<?php echo sprintf( $strTables, PMA_formatNumber( $num_tables, 0 ) ); ?>
</th>
<th colspan="<?php echo ( $db_is_information_schema ? 3 : 6 ) ?>" align="center">
<?php echo $strSum; ?>
</th>
<?php echo $strSum; ?></th>
<th class="value"><?php echo PMA_formatNumber( $sum_entries, 0 ); ?></th>
<?php
if (!($cfg['PropertiesNumColumns'] > 1)) {
echo ' <th align="center">--</th>' . "\n";
echo ' <th align="center">'
.PMA_DBI_get_default_engine() . '</th>' . "\n";
if ( ! empty( $db_collation ) ) {
echo ' <th align="center">' . "\n"
. ' <dfn title="'
. PMA_getCollationDescr($db_collation) . '">' . $db_collation
. '</dfn>' . "\n"
. ' </th>' . "\n";
. '</dfn></th>';
}
}
@@ -415,7 +414,7 @@ $checkall_url = 'db_details_structure.php?' . PMA_generate_common_url($db);
<img src="<?php echo $GLOBALS['pmaThemeImage'] . 'spacer.png'; ?>"
width="38" height="1" alt="" />
<select name="submit_mult" dir="ltr" onchange="this.form.submit();">
<select name="submit_mult" onchange="this.form.submit();">
<?php
echo ' <option value="' . $strWithChecked . '" selected="selected">'
. $strWithChecked . '</option>' . "\n";

View File

@@ -734,4 +734,17 @@ function PMA_DBI_fetch_result( $result, $key = NULL, $value = NULL, $link = NULL
PMA_DBI_free_result( $result );
return $resultrows;
}
/**
* return default able engine for gicen database
*
* @return string default table engine
*/
function PMA_DBI_get_default_engine() {
if ( PMA_MYSQL_INT_VERSION > 50002 ) {
return PMA_DBI_fetch_value( 'SHOW VARIABLES LIKE \'storage_engine\';', 0, 1 );
} else {
return PMA_DBI_fetch_value( 'SHOW VARIABLES LIKE \'table_type\';', 0, 1 );
}
}
?>