Commit 6b8bf756 authored by serg@serg.mysql.com's avatar serg@serg.mysql.com
Browse files

IGNORE/USE INDEX now work with HA_EXTRA_KEYREAD

parent 4802cda2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -321,3 +321,4 @@ sql-bench/innotest1b
sql-bench/innotest2
sql-bench/innotest2a
sql-bench/innotest2b
depcomp
+2 −2
Original line number Diff line number Diff line
@@ -94,9 +94,9 @@ fld3
table	type	possible_keys	key	key_len	ref	rows	Extra
t2	ref	fld3	fld3	30	const	1	where used; Using index
table	type	possible_keys	key	key_len	ref	rows	Extra
t2	index	fld3	fld3	30	NULL	1199	where used; Using index
t2	ALL	fld3	NULL	NULL	NULL	1199	where used
table	type	possible_keys	key	key_len	ref	rows	Extra
t2	index	fld3	fld3	30	NULL	1199	where used; Using index
t2	ALL	fld3	NULL	NULL	NULL	1199	where used
table	type	possible_keys	key	key_len	ref	rows	Extra
t2	ref	fld3	fld3	30	const	1	where used; Using index
table	type	possible_keys	key	key_len	ref	rows	Extra
+1 −0
Original line number Diff line number Diff line
@@ -1834,6 +1834,7 @@ bool setup_tables(TABLE_LIST *tables)
	DBUG_RETURN(1);
      table->table->keys_in_use_for_query &= ~map;
    }
    table->table->used_keys &= table->table->keys_in_use_for_query;
  }
  if (tablenr > MAX_TABLES)
  {