mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.4 into 10.5
This commit is contained in:
@ -183,6 +183,17 @@ bool Binary_string::set_hex(const char *str, uint32 len)
|
||||
}
|
||||
|
||||
|
||||
bool Binary_string::set_fcvt(double num, uint decimals)
|
||||
{
|
||||
// Assert that `decimals` is small enough to fit into FLOATING_POINT_BUFFER
|
||||
DBUG_ASSERT(decimals < DECIMAL_NOT_SPECIFIED);
|
||||
if (alloc(FLOATING_POINT_BUFFER))
|
||||
return true;
|
||||
length(my_fcvt(num, decimals, Ptr, NULL));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool String::set_real(double num,uint decimals, CHARSET_INFO *cs)
|
||||
{
|
||||
char buff[FLOATING_POINT_BUFFER];
|
||||
|
Reference in New Issue
Block a user