diff options
author | unknown <serg@build.mysql.com> | 2004-02-27 14:40:08 +0100 |
---|---|---|
committer | unknown <serg@build.mysql.com> | 2004-02-27 14:40:08 +0100 |
commit | ada82a3daac420bcd873df37ced77ed258edf0f2 (patch) | |
tree | 48ae627b412e8309d8d11ffd3c565f967dff1baa /sql/item_strfunc.cc | |
parent | 5fea4d81453ffe7c68cc0191124644ad0cbc8a68 (diff) | |
download | mariadb-git-ada82a3daac420bcd873df37ced77ed258edf0f2.tar.gz |
do not use static array of pastpoints in my_strtod - it is not portable
(that is, these numbers are converted to doubles by a local OS strtod,
and on different systems they get different values)
sql/item_strfunc.cc:
no need to check for HAVE_ISNAN here, it is taken care of in my_global.h
strings/strtod.c:
do not use static array of pastpoints - it is not portable
(that is, these numbers are converted to doubles by a local OS strtod,
and on different systems they get different values)
BitKeeper/etc/logging_ok:
Logging to logging@openlogging.org accepted
Diffstat (limited to 'sql/item_strfunc.cc')
-rw-r--r-- | sql/item_strfunc.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index ed6e44262c7..3d847a1216a 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 |