@@ -760,7 +760,7 @@ JOIN::prepare(Item ***rref_pointer_array,
760760 TABLE_LIST *tbl;
761761 List_iterator_fast<TABLE_LIST> li(select_lex->leaf_tables);
762762 /*
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
764764 be set to point to the handlerton of this engine.
765765 */
766766 one_storage_engine= 0;
@@ -1118,7 +1118,8 @@ JOIN::optimize_inner()
11181118 conds && conds->walk(&Item::exists2in_processor, 0, (uchar *)thd))
11191119 DBUG_RETURN(1);
11201120 /*
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
11221123 for (TABLE_LIST *tbl= tables_list; tbl; tbl= tbl->next_local)
11231124 {
11241125 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
19691970 }
19701971 storage_handler_for_group_by->store_data_in_temp_table= need_tmp;
19711972 /*
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
19741975 */
19751976 if (!order)
19761977 order= group_list;
@@ -17861,7 +17862,8 @@ do_select(JOIN *join,List<Item> *fields,TABLE *table,Procedure *procedure)
1786117862 /* Setup HAVING to work with fields in temporary table */
1786217863 join->set_items_ref_array(join->items1);
1786317864 /* 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);
1786517867 }
1786617868
1786717869 if (table)
0 commit comments