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

This commit is contained in:
unknown 2002-12-04 03:19:08 -08:00
commit 07f797a9bf
4 changed files with 38 additions and 5 deletions

View file

@ -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);