Commit a756f762 authored by unknown's avatar unknown

Make the heap_btree test repeatable.


mysql-test/r/heap_btree.result:
  Make the heap_btree test repeatable.
    - 'order by' added where we don't use the 'a' index.
mysql-test/t/heap_btree.test:
  Make the heap_btree test repeatable.
    - 'order by' added where we don't use the 'a' index.
parent bb3efba0
...@@ -255,27 +255,27 @@ a ...@@ -255,27 +255,27 @@ a
3 3
3 3
delete from t1 where a < 4; delete from t1 where a < 4;
select a from t1; select a from t1 order by a;
a a
insert into t1 values (2), (2), (2), (1), (1), (3), (3), (3), (3); insert into t1 values (2), (2), (2), (1), (1), (3), (3), (3), (3);
select a from t1 where a > 4; select a from t1 where a > 4;
a a
delete from t1 where a > 4; delete from t1 where a > 4;
select a from t1; select a from t1 order by a;
a a
3
3
1 1
3
3
1 1
2 2
2 2
2 2
3
3
3
3
select a from t1 where a > 3; select a from t1 where a > 3;
a a
delete from t1 where a >= 2; delete from t1 where a >= 2;
select a from t1; select a from t1 order by a;
a a
1 1
1 1
......
...@@ -172,14 +172,14 @@ create table t1(a int not null, key using btree(a)) engine=heap; ...@@ -172,14 +172,14 @@ create table t1(a int not null, key using btree(a)) engine=heap;
insert into t1 values (2), (2), (2), (1), (1), (3), (3), (3), (3); insert into t1 values (2), (2), (2), (1), (1), (3), (3), (3), (3);
select a from t1 where a > 2; select a from t1 where a > 2;
delete from t1 where a < 4; delete from t1 where a < 4;
select a from t1; select a from t1 order by a;
insert into t1 values (2), (2), (2), (1), (1), (3), (3), (3), (3); insert into t1 values (2), (2), (2), (1), (1), (3), (3), (3), (3);
select a from t1 where a > 4; select a from t1 where a > 4;
delete from t1 where a > 4; delete from t1 where a > 4;
select a from t1; select a from t1 order by a;
select a from t1 where a > 3; select a from t1 where a > 3;
delete from t1 where a >= 2; delete from t1 where a >= 2;
select a from t1; select a from t1 order by a;
drop table t1; drop table t1;
--echo End of 4.1 tests --echo End of 4.1 tests
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