mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 07:05:33 +02:00
Merge polly.local:/home/kaa/src/maint/bug24912/my50-bug24912
into polly.local:/home/kaa/src/maint/mysql-5.0-maint sql/item_func.cc: Auto merged sql/item_func.h: Auto merged sql/item_strfunc.cc: Auto merged sql/mysql_priv.h: Auto merged
This commit is contained in:
commit
ac86892f72
7 changed files with 207 additions and 57 deletions
|
|
@ -1995,7 +1995,7 @@ String *Item_func_format::val_str(String *str)
|
|||
double nr= args[0]->val_real();
|
||||
if ((null_value=args[0]->null_value))
|
||||
return 0; /* purecov: inspected */
|
||||
nr= my_double_round(nr, decimals, FALSE);
|
||||
nr= my_double_round(nr, (longlong) decimals, FALSE, FALSE);
|
||||
/* Here default_charset() is right as this is not an automatic conversion */
|
||||
str->set(nr,decimals, default_charset());
|
||||
if (isnan(nr))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue