Skip to content

Commit 4f3062d

Browse files
author
serg@serg.mylan
committed
minor omission that effectively disabled my_strtod fixed :)
1 parent da9ad42 commit 4f3062d

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

mysql-test/r/bigint.result

+3
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,6 @@ quantity
8484
10000000000000000000
8585
10000000000000000000
8686
drop table t1;
87+
SELECT '0x8000000000000001'+0;
88+
'0x8000000000000001'+0
89+
0

mysql-test/r/func_misc.result

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
select format(1.5555,0),format(123.5555,1),format(1234.5555,2),format(12345.5555,3),format(123456.5555,4),format(1234567.5555,5),format("12345.2399",2);
22
format(1.5555,0) format(123.5555,1) format(1234.5555,2) format(12345.5555,3) format(123456.5555,4) format(1234567.5555,5) format("12345.2399",2)
3-
2 123.6 1,234.56 12,345.556 123,456.5555 1,234,567.55550 12,345.24
3+
2 123.6 1,234.56 12,345.555 123,456.5555 1,234,567.55550 12,345.24
44
select inet_ntoa(inet_aton("255.255.255.255.255.255.255.255"));
55
inet_ntoa(inet_aton("255.255.255.255.255.255.255.255"))
66
NULL

mysql-test/t/bigint.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,5 @@ select * from t1;
6969
drop table t1;
7070

7171
# atof() behaviour is different of different systems. to be fixed in 4.1
72-
#SELECT '0x8000000000000001'+0;
72+
SELECT '0x8000000000000001'+0;
7373

strings/strtod.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,6 @@ double my_strtod(const char *str, char **end)
135135

136136
double my_atof(const char *nptr)
137137
{
138-
return (strtod(nptr, 0));
138+
return (my_strtod(nptr, 0));
139139
}
140140

0 commit comments

Comments
 (0)