mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
The output of mysqldump --tab for views included a DROP TABLE statement
without the IF EXISTS qualifier even though no temporary table is created as for all-in-one dumps including views. (Bug #37377)
This commit is contained in:
@ -4802,7 +4802,8 @@ static my_bool get_view_structure(char *table, char* db)
|
||||
result_table);
|
||||
check_io(sql_file);
|
||||
}
|
||||
fprintf(sql_file, "/*!50001 DROP TABLE %s*/;\n", opt_quoted_table);
|
||||
/* Table might not exist if this view was dumped with --tab. */
|
||||
fprintf(sql_file, "/*!50001 DROP TABLE IF EXISTS %s*/;\n", opt_quoted_table);
|
||||
if (opt_drop)
|
||||
{
|
||||
fprintf(sql_file, "/*!50001 DROP VIEW IF EXISTS %s*/;\n",
|
||||
|
Reference in New Issue
Block a user