From adca3098ab666bf266e21579e141c90daef01e11 Mon Sep 17 00:00:00 2001 From: Herman van Rink Date: Wed, 6 May 2009 08:30:27 +0000 Subject: [PATCH] bug #2787162 [interface] Table with name log_views is incorrectly displayed as a view --- libraries/database_interface.lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/database_interface.lib.php b/libraries/database_interface.lib.php index cdcb4e8dd..e5f248d5d 100644 --- a/libraries/database_interface.lib.php +++ b/libraries/database_interface.lib.php @@ -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]['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'; } else { /**