diff options
author | vva@eagle.mysql.r18.ru <> | 2004-03-06 03:00:21 +0400 |
---|---|---|
committer | vva@eagle.mysql.r18.ru <> | 2004-03-06 03:00:21 +0400 |
commit | a8bbcc52a94e24740d50b2283bc645a6e2cf5180 (patch) | |
tree | 6f0b14624710df2135208a6cedc7fc3e19db1752 /strings/strtod.c | |
parent | b09799529384f67b3daf53d2252838eb6b6c88a1 (diff) | |
download | mariadb-git-a8bbcc52a94e24740d50b2283bc645a6e2cf5180.tar.gz |
- added commands --query_vertical and --query_horisontal to client/mysqltest.cc
- get my_strtod to return inf
- get Field_float::store(double) and Field_double::store(float) to set null for
nan value
(as extra serg's recomendations to fix for patch on
Bug #2082 'mysqldump converts "inf" to null')
Diffstat (limited to 'strings/strtod.c')
-rw-r--r-- | strings/strtod.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/strings/strtod.c b/strings/strtod.c index 027abe56269..a06b74248cb 100644 --- a/strings/strtod.c +++ b/strings/strtod.c @@ -93,7 +93,7 @@ double my_strtod(const char *str, char **end) if (neg) result= 0.0; else - result= DBL_MAX; + result= DBL_MAX*10; goto done; } while (exp >= 100) @@ -113,9 +113,6 @@ done: if (end) *end = (char *)str; - if (isinf(result)) - result=DBL_MAX; - return negative ? -result : result; } |