summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 00077bda39f..bd720109a4d 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -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
{