@@ -359,18 +359,16 @@ static int dummy_ret_int() { return 0; }
359359
360360class ha_seq_group_by_handler : public group_by_handler
361361{
362+ List<Item> *fields;
363+ TABLE_LIST *table_list;
362364 bool first_row;
363365
364366public:
365367 ha_seq_group_by_handler (THD *thd_arg, List<Item> *fields_arg,
366- TABLE_LIST *table_list_arg, ORDER *group_by_arg,
367- ORDER *order_by_arg, Item *where_arg,
368- Item *having_arg)
369- :group_by_handler(thd_arg, fields_arg, table_list_arg, group_by_arg,
370- order_by_arg, where_arg, having_arg, sequence_hton) {}
368+ TABLE_LIST *table_list_arg)
369+ : group_by_handler(thd_arg, sequence_hton), fields(fields_arg),
370+ table_list (table_list_arg) {}
371371 ~ha_seq_group_by_handler () {}
372- bool init (TABLE *temporary_table, Item *having_arg,
373- ORDER *order_by_arg);
374372 int init_scan () { first_row= 1 ; return 0 ; }
375373 int next_row ();
376374 int end_scan () { return 0 ; }
@@ -427,21 +425,10 @@ create_group_by_handler(THD *thd, List<Item> *fields, TABLE_LIST *table_list,
427425 }
428426
429427 /* Create handler and return it */
430- handler= new ha_seq_group_by_handler (thd, fields, table_list, group_by,
431- order_by, where, having);
428+ handler= new ha_seq_group_by_handler (thd, fields, table_list);
432429 return handler;
433430}
434431
435- bool ha_seq_group_by_handler::init (TABLE *temporary_table, Item *having_arg,
436- ORDER *order_by_arg)
437- {
438- /*
439- Here we could add checks if the temporary table was created correctly
440- */
441- return group_by_handler::init (temporary_table, having_arg, order_by_arg);
442- }
443-
444-
445432int ha_seq_group_by_handler::next_row ()
446433{
447434 List_iterator_fast<Item> it (*fields);
0 commit comments