diff options
author | unknown <Sinisa@sinisa.nasamreza.org> | 2002-06-14 15:06:01 +0300 |
---|---|---|
committer | unknown <Sinisa@sinisa.nasamreza.org> | 2002-06-14 15:06:01 +0300 |
commit | 4a1b497899c01fd3df7deaa94ee9171fead111f5 (patch) | |
tree | 63763801fe20c7f851a8661ae6d3b1c393aa144a /sql | |
parent | 0ea0993cfb64feab7b603479fc1f2a1342381bb8 (diff) | |
download | mariadb-git-4a1b497899c01fd3df7deaa94ee9171fead111f5.tar.gz |
Fixed a rare bug when fulltext index is present and no tables are used.
A better fix would be to have a map of tables that are not used at all,
and to annul just fledls in that TABLE.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_select.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 3a52da5a084..9bb1365e4c3 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -257,7 +257,14 @@ 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) |