diff --git a/ChangeLog b/ChangeLog index 86db27c2b7..7ec8f40e05 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20,6 +20,7 @@ phpMyAdmin - ChangeLog - bug #3518983 [designer] Error messages do not appear in the Designer - bug #3519747 [interface] Suhosin patch warning incorrectly displayed - bug #3520107 [interface] Server status page: Incorrect dialog box titles +- bug #3516089 [structure] DROP does not work on defective VIEWs 3.5.0.0 (2012-04-07) + rfe #2021981 [interface] Add support for mass prefix change. diff --git a/db_structure.php b/db_structure.php index 2ddf775b96..13d343908b 100644 --- a/db_structure.php +++ b/db_structure.php @@ -322,7 +322,7 @@ foreach ($tables as $keyname => $each_table) { $empty_table .= ''; $drop_query = 'DROP ' - . ($table_is_view ? 'VIEW' : 'TABLE') + . (($table_is_view || $each_table['ENGINE'] == null) ? 'VIEW' : 'TABLE') . ' ' . PMA_backquote($each_table['TABLE_NAME']); $drop_message = sprintf( $table_is_view ? __('View %s has been dropped') : __('Table %s has been dropped'), @@ -422,7 +422,17 @@ foreach ($tables as $keyname => $each_table) {