From 7805aaadac57bf211c0514a51368b7da7df4286a Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Wed, 28 Jan 2009 11:18:00 +0000 Subject: [PATCH] Drop if exists git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@551 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- export.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/export.inc.php b/export.inc.php index 95f61ba8..54877caf 100644 --- a/export.inc.php +++ b/export.inc.php @@ -19,7 +19,7 @@ function dump_table($table, $style, $is_view = false) { $result = $mysql->query("SHOW CREATE TABLE " . idf_escape($table)); if ($result) { if ($style == "DROP, CREATE") { - echo "DROP " . ($is_view ? "VIEW" : "TABLE") . " " . idf_escape($table) . ";\n"; + echo "DROP " . ($is_view ? "VIEW" : "TABLE") . " IF EXISTS " . idf_escape($table) . ";\n"; } $create = $mysql->result($result, 1); $result->free();