From a03ecb7a8ef18243433b6ecc8492319ef124fb51 Mon Sep 17 00:00:00 2001 From: Roman Nozdrin Date: Mon, 19 Mar 2018 20:45:21 +0300 Subject: [PATCH] MCOL-1052. The handler returns fixed value. --- dbcon/mysql/ha_calpont.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dbcon/mysql/ha_calpont.cpp b/dbcon/mysql/ha_calpont.cpp index a4ace792f..533d99e76 100644 --- a/dbcon/mysql/ha_calpont.cpp +++ b/dbcon/mysql/ha_calpont.cpp @@ -1145,14 +1145,20 @@ create_calpont_group_by_handler(THD *thd, Query *query) ha_calpont_group_by_handler *handler; Item *item; List_iterator_fast 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[] =