mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Made keyread (key scanning) a key specific attribute.
This avoids using fulltext keys for table scanning. This also reverts Sinisa's original fix for this problem.
This commit is contained in:
@@ -233,7 +233,7 @@ mysql_select(THD *thd,TABLE_LIST *tables,List<Item> &fields,COND *conds,
|
||||
and no GROUP BY.
|
||||
TODO: Add check of calculation of GROUP functions and fields:
|
||||
SELECT COUNT(*)+table.col1 from table1;
|
||||
*/
|
||||
*/
|
||||
join.table=0;
|
||||
join.tables=0;
|
||||
{
|
||||
@@ -257,14 +257,7 @@ mysql_select(THD *thd,TABLE_LIST *tables,List<Item> &fields,COND *conds,
|
||||
}
|
||||
TABLE_LIST *table;
|
||||
for (table=tables ; table ; table=table->next)
|
||||
{
|
||||
join.tables++;
|
||||
if (!thd->used_tables)
|
||||
{
|
||||
TABLE *tbl=table->table;
|
||||
tbl->keys_in_use_for_query=tbl->used_keys= tbl->keys_in_use=0;
|
||||
}
|
||||
}
|
||||
}
|
||||
procedure=setup_procedure(thd,proc_param,result,fields,&error);
|
||||
if (error)
|
||||
|
||||
Reference in New Issue
Block a user