Commit 4f3062d9 authored by serg@serg.mylan's avatar serg@serg.mylan

minor omission that effectively disabled my_strtod fixed :)

parent da9ad428
...@@ -84,3 +84,6 @@ quantity ...@@ -84,3 +84,6 @@ quantity
10000000000000000000 10000000000000000000
10000000000000000000 10000000000000000000
drop table t1; drop table t1;
SELECT '0x8000000000000001'+0;
'0x8000000000000001'+0
0
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); 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);
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) 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)
2 123.6 1,234.56 12,345.556 123,456.5555 1,234,567.55550 12,345.24 2 123.6 1,234.56 12,345.555 123,456.5555 1,234,567.55550 12,345.24
select inet_ntoa(inet_aton("255.255.255.255.255.255.255.255")); select inet_ntoa(inet_aton("255.255.255.255.255.255.255.255"));
inet_ntoa(inet_aton("255.255.255.255.255.255.255.255")) inet_ntoa(inet_aton("255.255.255.255.255.255.255.255"))
NULL NULL
......
...@@ -69,5 +69,5 @@ select * from t1; ...@@ -69,5 +69,5 @@ select * from t1;
drop table t1; drop table t1;
# atof() behaviour is different of different systems. to be fixed in 4.1 # atof() behaviour is different of different systems. to be fixed in 4.1
#SELECT '0x8000000000000001'+0; SELECT '0x8000000000000001'+0;
...@@ -135,6 +135,6 @@ done: ...@@ -135,6 +135,6 @@ done:
double my_atof(const char *nptr) double my_atof(const char *nptr)
{ {
return (strtod(nptr, 0)); return (my_strtod(nptr, 0));
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment