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.
This commit is contained in:
igor@rurik.mysql.com
2006-05-30 00:08:58 -07:00
parent cb4c6a0ded
commit 6051e0f959
33 changed files with 16 additions and 41 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: Index 'foo' is not defined for table 't1'
ERROR HY000: Key 'foo' doesn't exist in table 't1'
explain select * from t1 ignore key (str,str,foo) where str="foo";
ERROR 42000: Index 'foo' is not defined for table 't1'
ERROR HY000: Key 'foo' doesn't exist in table 't1'
drop table t1;
explain select 1;
id select_type table type possible_keys key key_len ref rows Extra