summaryrefslogtreecommitdiff
path: root/sql/sql_delete.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-02-23 12:51:43 +0100
committerSergei Golubchik <serg@mariadb.org>2018-02-24 01:28:45 +0100
commit17f8e0ecdf68846d6fb5e157e003794ba9a959c2 (patch)
treec354f117e62b56a0d08241cc13eb7ec42205e436 /sql/sql_delete.cc
parent5282d0dce163f73691c2ca9a1a5a951fa47563b2 (diff)
downloadmariadb-git-17f8e0ecdf68846d6fb5e157e003794ba9a959c2.tar.gz
unify error messages a bit
Diffstat (limited to 'sql/sql_delete.cc')
-rw-r--r--sql/sql_delete.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc
index 59af16ff525..55cc26d9041 100644
--- a/sql/sql_delete.cc
+++ b/sql/sql_delete.cc
@@ -310,7 +310,7 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
{
if (table_list->is_view_or_derived())
{
- my_error(ER_VERS_TRUNCATE_VIEW, MYF(0));
+ my_error(ER_IT_IS_A_VIEW, MYF(0), table_list->table_name.str);
DBUG_RETURN(true);
}
@@ -938,7 +938,7 @@ l
{
if (table_list->is_view())
{
- my_error(ER_VERS_TRUNCATE_VIEW, MYF(0));
+ my_error(ER_IT_IS_A_VIEW, MYF(0), table_list->table_name.str);
DBUG_RETURN(true);
}
if (select_lex->vers_setup_conds(thd, table_list, conds))