1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

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

Reduced the precision of the test numbers.
Not all platforms could reproduce the exact numbers.
This commit is contained in:
ingo@mysql.com
2005-09-27 15:26:16 +02:00
parent 4025d2965b
commit d005299a57
2 changed files with 10 additions and 10 deletions

View File

@@ -620,28 +620,28 @@ create table t3 engine=merge union=(t1, t2) select * from t2;
INSERT TABLE 't2' isn't allowed in FROM table list
drop table t1, t2;
create table t1 (
a double(16,6),
a double(14,4),
b varchar(10),
index (a,b)
) engine=merge union=(t2,t3);
create table t2 (
a double(16,6),
a double(14,4),
b varchar(10),
index (a,b)
) engine=myisam;
create table t3 (
a double(16,6),
a double(14,4),
b varchar(10),
index (a,b)
) engine=myisam;
insert into t2 values ( null, '');
insert into t2 values ( 9999999999.999999, '');
insert into t2 values ( 9999999999.9999, '');
insert into t3 select * from t2;
select min(a), max(a) from t1;
min(a) max(a)
9999999999.999998 9999999999.999998
9999999999.9999 9999999999.9999
flush tables;
select min(a), max(a) from t1;
min(a) max(a)
9999999999.999998 9999999999.999998
9999999999.9999 9999999999.9999
drop table t1, t2, t3;