kaa@polly.local
6fd25f611a
Merge polly.local:/tmp/22129/bug22129/my41-bug22129
...
into polly.local:/tmp/22129/bug22129/my50-bug22129
2006-09-22 19:40:07 +04:00
kaa@polly.local
1530b51d8f
Fixed bug #22129 : A small double precision number becomes zero
...
Better checks for underflow/overflow
2006-09-22 19:23:58 +04:00
joerg@trift2.
1419b5c249
Merge trift2.:/M41/push-1-4.1
...
into trift2.:/M50/merge-4.1-to-5.0
2006-07-24 16:04:40 +02:00
joerg@trift2.
671019efd6
strings/strtod.c : Ensure the definition of "EOVERFLOW" is available.
...
In 5.0, this is already solved, so that is a null-merge ("ul").
2006-07-17 19:38:46 +02:00
knielsen@mysql.com
a3019ab196
Fix Windows build problem following previous push.
2006-06-30 11:10:38 +02:00
elliot@mysql.com
5cd5e48761
Fixing windows build.
2006-06-30 00:10:41 -04:00
monty@mysql.com
8e2099295d
Fixed include file usage
...
hp_test2 now works again
Fixed wrong cast, which caused problems with gcc 4.0 and floats in prepared statements (Bug #19694 )
2006-06-30 02:25:35 +03:00
monty@mysql.com
e2dc9b4099
Backport my_strntod() from 5.0
...
Change string->float conversion to delay division as long as possible.
This gives us more exact integer->float conversion for numbers of type '123.45E+02' (Bug #7740 )
2005-02-22 12:51:23 +02:00
serg@serg.mylan
ceec63f18a
EOVERFLOW moved to my_base.h - it is used not only in strtod.c
...
error message corrected
2004-03-16 16:35:47 +01:00
monty@mysql.com
eb8a9e275f
Moved errno to strtod.c as one can use m_string.h without errno.h
2004-03-16 00:04:06 +02:00
monty@mysql.com
9e8938cbae
merge & simple cleanup
2004-03-15 13:21:14 +02:00
monty@mysql.com
cf66e187e2
Optimizations
2004-03-15 12:53:27 +02:00
serg@serg.mylan
ded8fa56eb
my_strtod fixes:
...
sigsegv protection (exp overflow)
don't return inf!
use errno=EOVERFLOW to signal an overflow (as my_strntod uses errno anyway)
if errno will be too slow, my_strtod can be changed to return overflow status in a parameter (like my_strntod does)
2004-03-14 17:25:20 +01:00
vva@eagle.mysql.r18.ru
a8bbcc52a9
- 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')
2004-03-06 03:00:21 +04:00
serg@build.mysql.com
d0b0e5bf77
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)
2004-02-27 14:40:08 +01:00
serg@serg.mylan
4f3062d95f
minor omission that effectively disabled my_strtod fixed :)
2004-02-24 12:31:33 +01:00
lenz@kallisto.local
00e2668b87
- fixed C++-style comment in strings/strtod.c which caused a compile
...
error with the IBM xlc_r compiler
2004-02-18 00:23:16 +01:00
serg@serg.mylan
5914e5705c
my_atof is deleted
...
strtod from mit-threads is restored and cleaned up
2004-02-13 15:27:21 +01:00