mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 11:27:39 +02:00
Return a warning for DROP DATABASE/TABLE IF EXISTS <non_existing_db/table(s)>
This commit is contained in:
parent
265bf23895
commit
07f797a9bf
4 changed files with 38 additions and 5 deletions
|
|
@ -331,8 +331,12 @@ int mysql_rm_db(THD *thd,char *db,bool if_exists, bool silent)
|
|||
error= -1;
|
||||
my_error(ER_DB_DROP_EXISTS,MYF(0),db);
|
||||
}
|
||||
else if (!silent)
|
||||
send_ok(thd,0);
|
||||
else
|
||||
{
|
||||
store_warning(thd,ER_DB_DROP_EXISTS,db);
|
||||
if (!silent)
|
||||
send_ok(thd,0);
|
||||
}
|
||||
goto exit;
|
||||
}
|
||||
pthread_mutex_lock(&LOCK_open);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue