summaryrefslogtreecommitdiff
path: root/sql/sql_view.cc
diff options
context:
space:
mode:
authorGleb Shchepa <gshchepa@mysql.com>2008-11-28 21:35:48 +0400
committerGleb Shchepa <gshchepa@mysql.com>2008-11-28 21:35:48 +0400
commit86a20bd3dc7cbd85d31edd24a0c889c87903c891 (patch)
tree6a98c6d28c71f0f897ec2b0f583e751ae8041006 /sql/sql_view.cc
parentd15cbc1a1abf8c61398c096b0a0271d361da552c (diff)
parent41ccbefcc4cbf75c18e37746bd52617f6c9794b9 (diff)
downloadmariadb-git-86a20bd3dc7cbd85d31edd24a0c889c87903c891.tar.gz
manual merge 5.0-bugteam --> 5.1-bugteam (bug 33461)
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r--sql/sql_view.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc
index 7b5a4ec17ca..be66f7c2d80 100644
--- a/sql/sql_view.cc
+++ b/sql/sql_view.cc
@@ -1049,8 +1049,9 @@ bool mysql_make_view(THD *thd, File_parser *parser, TABLE_LIST *table,
if (table->index_hints && table->index_hints->elements)
{
- my_error(ER_WRONG_USAGE, MYF(0), "index hints", "VIEW");
- DBUG_RETURN(TRUE);
+ my_error(ER_KEY_DOES_NOT_EXITS, MYF(0),
+ table->index_hints->head()->key_name.str, table->table_name);
+ DBUG_RETURN(TRUE);
}
/* check loop via view definition */