Comment 1 for bug 315268

Revision history for this message
Padraig O'Sullivan (posulliv) wrote :

Confirmed on trunk:

TEST RESULT TIME (ms)
-------------------------------------------------------

main.index_merge_myisam [ fail ]

drizzletest: In included file "./include/index_merge1.inc": At line 187: query 'alter table t2 add index i1_3(key1, key3)' failed: 7: Error on rename of './test/t2.dfe' to './test/#sql2-6731-1.dfe' (errno: 2)

The result from queries just before the failure was:
< snip >
((key3 >=5 or key5 < 2) and (key5 < 5 or key6 < 6));
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t0 index_merge i1,i2,i3,i5,i6 i3,i5 0,4 NULL 1024 Using sort_union(i3,i5); Using where
select * from t0 where key1 < 5 or key8 < 4 order by key1;
key1 key2 key3 key4 key5 key6 key7 key8
1 1 1 1 1 1 1 1023
2 2 2 2 2 2 2 1022
3 3 3 3 3 3 3 1021
4 4 4 4 4 4 4 1020
1021 1021 1021 1021 1021 1021 1021 3
1022 1022 1022 1022 1022 1022 1022 2
1023 1023 1023 1023 1023 1023 1023 1
1024 1024 1024 1024 1024 1024 1024 0
explain
select * from t0 where key1 < 5 or key8 < 4 order by key1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t0 index_merge i1,i8 i1,i8 4,4 NULL 9 Using sort_union(i1,i8); Using where; Using filesort
create table t2 like t0;
insert into t2 select * from t0;
alter table t2 add index i1_3(key1, key3);