@@ -760,7 +760,7 @@ JOIN::prepare(Item ***rref_pointer_array,
760
760
TABLE_LIST *tbl;
761
761
List_iterator_fast<TABLE_LIST> li(select_lex->leaf_tables);
762
762
/*
763
- If all tables comes from the same storage engine, one_storge_engine will
763
+ If all tables comes from the same storage engine, one_storage_engine will
764
764
be set to point to the handlerton of this engine.
765
765
*/
766
766
one_storage_engine= 0;
@@ -1118,7 +1118,8 @@ JOIN::optimize_inner()
1118
1118
conds && conds->walk(&Item::exists2in_processor, 0, (uchar *)thd))
1119
1119
DBUG_RETURN(1);
1120
1120
/*
1121
- TODO: make view to decide if it is possible to write to WHERE directly or make Semi-Joins able to process ON condition if it is possible
1121
+ TODO
1122
+ make view to decide if it is possible to write to WHERE directly or make Semi-Joins able to process ON condition if it is possible
1122
1123
for (TABLE_LIST *tbl= tables_list; tbl; tbl= tbl->next_local)
1123
1124
{
1124
1125
if (tbl->on_expr &&
@@ -1969,8 +1970,8 @@ TODO: make view to decide if it is possible to write to WHERE directly or make S
1969
1970
}
1970
1971
storage_handler_for_group_by->store_data_in_temp_table= need_tmp;
1971
1972
/*
1972
- If there is not specified ORDER BY , we should sort things according
1973
- to the group_by
1973
+ If no ORDER BY clause was specified explicitly , we should sort things
1974
+ according to the group_by
1974
1975
*/
1975
1976
if (!order)
1976
1977
order= group_list;
@@ -17861,7 +17862,8 @@ do_select(JOIN *join,List<Item> *fields,TABLE *table,Procedure *procedure)
17861
17862
/* Setup HAVING to work with fields in temporary table */
17862
17863
join->set_items_ref_array(join->items1);
17863
17864
/* The storage engine will take care of the group by query result */
17864
- DBUG_RETURN(join->storage_handler_for_group_by->execute(join));
17865
+ int res= join->storage_handler_for_group_by->execute(join);
17866
+ DBUG_RETURN(res);
17865
17867
}
17866
17868
17867
17869
if (table)
0 commit comments