bug #2787162 [interface] Table with name log_views is incorrectly displayed as a view

This commit is contained in:
Herman van Rink
2009-05-06 08:30:27 +00:00
parent b5d14acc0e
commit adca3098ab

View File

@@ -437,7 +437,8 @@ function PMA_DBI_get_tables_full($database, $table = false, $tbl_is_group = fals
$each_tables[$table_name]['CREATE_OPTIONS'] =& $each_tables[$table_name]['Create_options']; $each_tables[$table_name]['CREATE_OPTIONS'] =& $each_tables[$table_name]['Create_options'];
$each_tables[$table_name]['TABLE_COMMENT'] =& $each_tables[$table_name]['Comment']; $each_tables[$table_name]['TABLE_COMMENT'] =& $each_tables[$table_name]['Comment'];
if (strtoupper($each_tables[$table_name]['Comment']) === 'VIEW') { if (strtoupper($each_tables[$table_name]['Comment']) === 'VIEW'
&& $each_tables[$table_name]['Engine'] == NULL) {
$each_tables[$table_name]['TABLE_TYPE'] = 'VIEW'; $each_tables[$table_name]['TABLE_TYPE'] = 'VIEW';
} else { } else {
/** /**