1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fixed bug #17873: confusing error message when IGNORE/USE/FORCE INDEX

refers to a column name.
Added a new error message ER_INDEX_DOES_NOT_EXIST.
This commit is contained in:
igor@rurik.mysql.com
2006-05-27 23:57:33 -07:00
parent 6d285f8a29
commit 377b3e0306
33 changed files with 86 additions and 59 deletions

View File

@ -2633,7 +2633,7 @@ bool get_key_map_from_key_list(key_map *map, TABLE *table,
if ((pos= find_type(&table->keynames, name->ptr(), name->length(), 1)) <=
0)
{
my_error(ER_KEY_COLUMN_DOES_NOT_EXITS, MYF(0), name->c_ptr(),
my_error(ER_INDEX_DOES_NOT_EXIST, MYF(0), name->c_ptr(),
table->real_name);
map->set_all();
return 1;