summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.cc
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2004-02-27 22:38:36 +0100
committerunknown <serg@serg.mylan>2004-02-27 22:38:36 +0100
commit9a9983ce2cd356f300960ce0a39070db17f883d8 (patch)
tree49d558f2add84f7ce839dd5f58b0beff423497f9 /sql/item_strfunc.cc
parent546de4b2bf9179ff5ca0dc281384040ce3938b62 (diff)
parente6ff5ee926799e69902ff88162882457eae6c8d7 (diff)
downloadmariadb-git-9a9983ce2cd356f300960ce0a39070db17f883d8.tar.gz
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
Diffstat (limited to 'sql/item_strfunc.cc')
-rw-r--r--sql/item_strfunc.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc
index 71754255573..33512eae2cb 100644
--- a/sql/item_strfunc.cc
+++ b/sql/item_strfunc.cc
@@ -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