mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 10:15:29 +02:00
Fix for a NAN problem in FORMAT(...) string function ..
This commit is contained in:
parent
e357610ba3
commit
24aba046bf
3 changed files with 5 additions and 1 deletions
|
|
@ -1477,7 +1477,7 @@ String *Item_func_format::val_str(String *str)
|
|||
if (nr < 0)
|
||||
str_length--; // Don't count sign
|
||||
length=str->length()+(diff=(str_length- dec-1)/3);
|
||||
if (diff)
|
||||
if (diff && diff < 330) // size of buff ...
|
||||
{
|
||||
char *tmp,*pos;
|
||||
str=copy_if_not_alloced(&tmp_str,str,length);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue