diff options
author | unknown <ingo@mysql.com> | 2005-04-08 14:13:02 +0200 |
---|---|---|
committer | unknown <ingo@mysql.com> | 2005-04-08 14:13:02 +0200 |
commit | c15cf8b54e782a3d06b48e5040da21d3dd45a322 (patch) | |
tree | 8a313ebce33fd21f19bbbf1fd9abd09bee3ddf7c /mysql-test/t/myisam.test | |
parent | 4fc8cb588fb49a2f340ad2cee231f8c0478e86dc (diff) | |
download | mariadb-git-c15cf8b54e782a3d06b48e5040da21d3dd45a322.tar.gz |
Bug#9188 - Corruption Can't open file: 'table.MYI' (errno: 145)
Since 4.1 keys are compared with trailing spaces.
Thus, a "x " key can be inserted between a couple of "x" keys.
The existing code did not take this into account. Though the
comments in the code claimed it did.
myisam/mi_search.c:
Bug#9188 - Corruption Can't open file: 'table.MYI' (errno: 145)
Fixed some function comments.
In the case when we insert a different key between two identical keys,
the difference must be additional spaces. In this case the prefix is
the same as that of the new key instead of the (zero) remaining length.
myisam/mi_write.c:
Bug#9188 - Corruption Can't open file: 'table.MYI' (errno: 145)
Fixed a function comment.
mysql-test/r/myisam.result:
Bug#9188 - Corruption Can't open file: 'table.MYI' (errno: 145)
The test result.
mysql-test/t/myisam.test:
Bug#9188 - Corruption Can't open file: 'table.MYI' (errno: 145)
The test case.
Diffstat (limited to 'mysql-test/t/myisam.test')
-rw-r--r-- | mysql-test/t/myisam.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/myisam.test b/mysql-test/t/myisam.test index 0babd1f9401..46a6499adad 100644 --- a/mysql-test/t/myisam.test +++ b/mysql-test/t/myisam.test @@ -550,3 +550,13 @@ truncate table t1; insert into t1 values (1); drop table t1,t2; +# +# bug9188 - Corruption Can't open file: 'table.MYI' (errno: 145) +# +create table t1 (c1 int, c2 varchar(4) not null default '', + key(c2(3))) default charset=utf8; +insert into t1 values (1,'A'), (2, 'B'), (3, 'A'); +update t1 set c2='A B' where c1=2; +check table t1; +drop table t1; + |