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

@ -24,9 +24,9 @@ explain select * from t1 use key (str,str) where str="foo";
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 const str str 11 const 1
explain select * from t1 use key (str,str,foo) where str="foo";
ERROR 42000: Key column 'foo' doesn't exist in table
ERROR 42000: Index 'foo' is not defined for table 't1'
explain select * from t1 ignore key (str,str,foo) where str="foo";
ERROR 42000: Key column 'foo' doesn't exist in table
ERROR 42000: Index 'foo' is not defined for table 't1'
drop table t1;
explain select 1;
id select_type table type possible_keys key key_len ref rows Extra