mirror of
https://github.com/MariaDB/server.git
synced 2026-05-09 16:44:29 +02:00
Merge bk-internal:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1 sql/item_strfunc.cc: Auto merged sql/mysqld.cc: Auto merged
This commit is contained in:
commit
42f5a91f59
16 changed files with 71 additions and 133 deletions
|
|
@ -1599,10 +1599,8 @@ String *Item_func_format::val_str(String *str)
|
|||
dec= decimals ? decimals+1 : 0;
|
||||
/* Here default_charset() is right as this is not an automatic conversion */
|
||||
str->set(nr,decimals, default_charset());
|
||||
#ifdef HAVE_ISNAN
|
||||
if (isnan(nr))
|
||||
return str;
|
||||
#endif
|
||||
str_length=str->length();
|
||||
if (nr < 0)
|
||||
str_length--; // Don't count sign
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue