summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.cc
diff options
context:
space:
mode:
authorkaa@polly.local <>2007-04-28 20:26:14 +0400
committerkaa@polly.local <>2007-04-28 20:26:14 +0400
commit561bd78654501a11ab26f6a090b430bfccb7197f (patch)
tree49453d89159d8dbdffe5b970dc54cf197c85ca9f /sql/item_strfunc.cc
parentacee0c8e20772b6674eebcd26ee43a8901b6d2a6 (diff)
parent050c6723e81bc443d708e1a02730ed971d5c9be6 (diff)
downloadmariadb-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.cc2
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))