summaryrefslogtreecommitdiff
path: root/sql/sql_view.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2017-03-26 22:30:43 +0300
committerAlexander Barkov <bar@mariadb.org>2017-04-07 18:22:06 +0400
commit470c3fd98d724fccbf96c049f2153bc1f5990915 (patch)
treee27efd43ad631df068472d72049cb99573cefd02 /sql/sql_view.cc
parent17a87d606302b55d547104d7fe6c536c6c288a8b (diff)
downloadmariadb-git-470c3fd98d724fccbf96c049f2153bc1f5990915.tar.gz
Change error message when using DROP VIEW on a non existing view from
"Unknown table" to "Unknown view"
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r--sql/sql_view.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc
index 09b1fbf65d0..fb4c2c3d835 100644
--- a/sql/sql_view.cc
+++ b/sql/sql_view.cc
@@ -1805,8 +1805,8 @@ bool mysql_drop_view(THD *thd, TABLE_LIST *views, enum_drop_mode drop_mode)
if (thd->lex->if_exists())
{
push_warning_printf(thd, Sql_condition::WARN_LEVEL_NOTE,
- ER_BAD_TABLE_ERROR,
- ER_THD(thd, ER_BAD_TABLE_ERROR),
+ ER_UNKNOWN_VIEW,
+ ER_THD(thd, ER_UNKNOWN_VIEW),
name);
continue;
}
@@ -1848,7 +1848,7 @@ bool mysql_drop_view(THD *thd, TABLE_LIST *views, enum_drop_mode drop_mode)
}
if (non_existant_views.length())
{
- my_error(ER_BAD_TABLE_ERROR, MYF(0), non_existant_views.c_ptr_safe());
+ my_error(ER_UNKNOWN_VIEW, MYF(0), non_existant_views.c_ptr_safe());
}
something_wrong= error || wrong_object_name || non_existant_views.length();