Commit 1af69fca authored by ingo@mysql.com's avatar ingo@mysql.com

Bug#9112 - Merge table with composite index producing invalid results with some queries

Second platform fix for floating point rounding.
parent d005299a
......@@ -635,13 +635,13 @@ b varchar(10),
index (a,b)
) engine=myisam;
insert into t2 values ( null, '');
insert into t2 values ( 9999999999.9999, '');
insert into t2 values ( 9999999999.999, '');
insert into t3 select * from t2;
select min(a), max(a) from t1;
min(a) max(a)
9999999999.9999 9999999999.9999
9999999999.9990 9999999999.9990
flush tables;
select min(a), max(a) from t1;
min(a) max(a)
9999999999.9999 9999999999.9999
9999999999.9990 9999999999.9990
drop table t1, t2, t3;
......@@ -291,7 +291,7 @@ create table t3 (
) engine=myisam;
insert into t2 values ( null, '');
insert into t2 values ( 9999999999.9999, '');
insert into t2 values ( 9999999999.999, '');
insert into t3 select * from t2;
select min(a), max(a) from t1;
flush tables;
......
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