summaryrefslogtreecommitdiff
path: root/sql/sql_select.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r--sql/sql_select.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 94fa08b769a..0af91c443a8 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -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)