Commit eb2187a2 authored by Varun Gupta's avatar Varun Gupta

Val_str function added for the percentile_disc function, as it can have result...

Val_str function added for the percentile_disc function, as it can have result type as STRING_RESULT
parent 3393005e
......@@ -765,6 +765,17 @@ class Item_sum_percentile_disc : public Item_sum_cume_dist,
return value->val_decimal(dec);
}
String* val_str(String *str)
{
if (get_row_count() == 0 || get_arg(0)->is_null())
{
null_value= true;
return 0;
}
null_value= false;
return value->val_str(str);
}
bool add()
{
Item *arg = get_arg(0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment