From f5bbe5f24d610fd3480e444a1d7d34797a09b57b Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 25 Mar 2006 11:45:23 +0000 Subject: [PATCH] DROP VIEW choice also for a db copy operation --- ChangeLog | 3 ++- db_operations.php | 9 ++++++++- libraries/Table.class.php | 28 ++++++++++++++++------------ libraries/sqlparser.data.php | 3 ++- 4 files changed, 28 insertions(+), 15 deletions(-) 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) {
-
+