Commit 2c3fdcf7 authored by unknown's avatar unknown

test case for MyISAM sort-repair bug

parent db77cba5
...@@ -385,3 +385,9 @@ check table t1; ...@@ -385,3 +385,9 @@ check table t1;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 check status OK test.t1 check status OK
drop table t1; drop table t1;
create table t1 ( a text not null, key a (a(20)));
insert into t1 values ('aaa '),('aaa');
repair table t1;
Table Op Msg_type Msg_text
test.t1 repair status OK
drop table t1;
...@@ -385,3 +385,12 @@ insert into t1 (b) values (repeat('z',100)); ...@@ -385,3 +385,12 @@ insert into t1 (b) values (repeat('z',100));
update t1 set b="test" where left(b,1) > 'n'; update t1 set b="test" where left(b,1) > 'n';
check table t1; check table t1;
drop table t1; drop table t1;
#
# sort-repair bug
#
create table t1 ( a text not null, key a (a(20)));
insert into t1 values ('aaa '),('aaa');
repair table t1;
drop table t1;
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