1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

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

This commit is contained in:
Varun Gupta
2017-07-17 13:19:20 +05:30
parent 3393005e95
commit eb2187a24f

View File

@@ -765,6 +765,17 @@ public:
return value->val_decimal(dec); 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() bool add()
{ {
Item *arg = get_arg(0); Item *arg = get_arg(0);