diff options
author | kaa@polly.local <> | 2007-04-28 20:26:14 +0400 |
---|---|---|
committer | kaa@polly.local <> | 2007-04-28 20:26:14 +0400 |
commit | 561bd78654501a11ab26f6a090b430bfccb7197f (patch) | |
tree | 49453d89159d8dbdffe5b970dc54cf197c85ca9f /sql/item_strfunc.cc | |
parent | acee0c8e20772b6674eebcd26ee43a8901b6d2a6 (diff) | |
parent | 050c6723e81bc443d708e1a02730ed971d5c9be6 (diff) | |
download | mariadb-git-561bd78654501a11ab26f6a090b430bfccb7197f.tar.gz |
Merge polly.local:/home/kaa/src/maint/bug24912/my50-bug24912
into polly.local:/home/kaa/src/maint/mysql-5.0-maint
Diffstat (limited to 'sql/item_strfunc.cc')
-rw-r--r-- | sql/item_strfunc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index 1991526345c..f9a0f715985 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -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)) |