1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-1052. The handler returns fixed value.

This commit is contained in:
Roman Nozdrin
2018-03-19 20:45:21 +03:00
parent e14b327a57
commit a03ecb7a8e

View File

@ -1145,14 +1145,20 @@ create_calpont_group_by_handler(THD *thd, Query *query)
ha_calpont_group_by_handler *handler;
Item *item;
List_iterator_fast<Item> it(*query->select);
handler= new ha_calpont_group_by_handler(thd, query->select, query->from);
return handler;
}
int ha_calpont_group_by_handler::next_row()
{
return(0);
if (!first_row)
return(HA_ERR_END_OF_FILE);
first_row= 0;
Field *field = *(table->field);
field->store(5LL, 1);
field->set_notnull();
return(0);
}
static struct st_mysql_sys_var* calpont_system_variables[] =