diff options
author | unknown <venu@myvenu.com> | 2002-12-04 03:19:08 -0800 |
---|---|---|
committer | unknown <venu@myvenu.com> | 2002-12-04 03:19:08 -0800 |
commit | 07f797a9bf71c19ae0d9c4cdf2b3a11def3bac03 (patch) | |
tree | a4e71aed04340d274de207969d7c92c7570c95f4 /sql/sql_db.cc | |
parent | 265bf238951c3a123c4d6f7fea600175a399cf96 (diff) | |
download | mariadb-git-07f797a9bf71c19ae0d9c4cdf2b3a11def3bac03.tar.gz |
Return a warning for DROP DATABASE/TABLE IF EXISTS <non_existing_db/table(s)>
Diffstat (limited to 'sql/sql_db.cc')
-rw-r--r-- | sql/sql_db.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sql/sql_db.cc b/sql/sql_db.cc index c3e183de0ac..85dfb38fa48 100644 --- a/sql/sql_db.cc +++ b/sql/sql_db.cc @@ -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); |