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:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user