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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user