summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authormonty@mysql.com <>2005-10-27 22:45:18 +0300
committermonty@mysql.com <>2005-10-27 22:45:18 +0300
commita9b1ff40951a74666f3de90c7d79f40fc507ae16 (patch)
treeb6d33b8036e354e85e5951e6312d4bed8430b87c /client
parentfaba744caf8c2f8da1b3b4e68d88ffd09a0e1601 (diff)
downloadmariadb-git-a9b1ff40951a74666f3de90c7d79f40fc507ae16.tar.gz
Add DROP TABLE before trying to create view (in mysqldump)
Cleaned up xxxx_gis.test's and made gis_generic.inc independent of ndb (Note that archive_gis.test fails, but this is independent of this patch)
Diffstat (limited to 'client')
-rw-r--r--client/mysqldump.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/mysqldump.c b/client/mysqldump.c
index eb814c267ed..2ec1dd28f73 100644
--- a/client/mysqldump.c
+++ b/client/mysqldump.c
@@ -1460,6 +1460,8 @@ static uint get_table_structure(char *table, char *db, char *table_type,
{
fprintf(sql_file, "/*!50001 DROP VIEW IF EXISTS %s*/;\n",
opt_quoted_table);
+ fprintf(sql_file, "/*!50001 DROP TABLE IF EXISTS %s*/;\n",
+ opt_quoted_table);
check_io(sql_file);
}
@@ -1471,7 +1473,8 @@ static uint get_table_structure(char *table, char *db, char *table_type,
*/
row= mysql_fetch_row(result);
- fprintf(sql_file, " %s %s", quote_name(row[0], name_buff, 0), row[1]);
+ fprintf(sql_file, " %s %s", quote_name(row[0], name_buff, 0),
+ row[1]);
while((row= mysql_fetch_row(result)))
{