diff options
author | unknown <vva@eagle.mysql.r18.ru> | 2004-03-06 03:00:21 +0400 |
---|---|---|
committer | unknown <vva@eagle.mysql.r18.ru> | 2004-03-06 03:00:21 +0400 |
commit | 287985a4d0bdf2cb6dd33a91c609f71737f140f7 (patch) | |
tree | 6f0b14624710df2135208a6cedc7fc3e19db1752 /strings/strtod.c | |
parent | 9988eecd45c1b6237ed352a7c95f37d19fa25aa1 (diff) | |
download | mariadb-git-287985a4d0bdf2cb6dd33a91c609f71737f140f7.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')
client/mysqltest.c:
added commands --query_vertical and --query_horisontal
mysql-test/r/insert.result:
converted testcase so as my_strtod can return inf now
mysql-test/r/mysqldump.result:
converted testcase so as my_strtod can return inf now
mysql-test/t/insert.test:
corrected tests to using --query_vertical instead of
pair (vertical_results,horisontal_results)
sql/field.cc:
corrected Field_float::store(double) and Field_double::store(double)
to set null for nan value
strings/strtod.c:
get my_strtod to return inf
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; } |