1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Return a warning for DROP DATABASE/TABLE IF EXISTS <non_existing_db/table(s)>

This commit is contained in:
venu@myvenu.com
2002-12-04 03:19:08 -08:00
parent ed8cc2a844
commit 91558620e0
4 changed files with 38 additions and 5 deletions

View File

@ -163,8 +163,10 @@ int mysql_rm_table_part2(THD *thd, TABLE_LIST *tables, bool if_exists,
if (access(path,F_OK))
{
if (!if_exists)
error=1;
if (if_exists)
store_warning(thd, ER_BAD_TABLE_ERROR, table->real_name);
else
error= 1;
}
else
{