mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
- 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')
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user