diff --git a/ChangeLog b/ChangeLog index a538de272..3b5f9982d 100755 --- a/ChangeLog +++ b/ChangeLog @@ -6,7 +6,8 @@ $Id$ $Source$ 2006-03-25 Marc Delisle - * libraries/display_export.lib.php libraries/export/sql.php: + * db_operations.php, libraries/Table.class.php, + libraries/display_export.lib.php libraries/export/sql.php: bug #1401864, DROP VIEW instead of DROP TABLE 2006-03-23 Marc Delisle diff --git a/db_operations.php b/db_operations.php index 1da4985f0..30168deec 100644 --- a/db_operations.php +++ b/db_operations.php @@ -234,6 +234,11 @@ if (!$is_information_schema) { .' alt="" width="16" height="16" />'; } echo $strDBCopy . ':'; + if (PMA_MYSQL_INT_VERSION >= 50000) { + $drop_clause = 'DROP TABLE / DROP VIEW'; + } else { + $drop_clause = 'DROP TABLE'; + } ?>
@@ -254,7 +259,7 @@ if (!$is_information_schema) {
-
+