diff options
author | ingo@mysql.com <> | 2005-08-29 18:18:30 +0200 |
---|---|---|
committer | ingo@mysql.com <> | 2005-08-29 18:18:30 +0200 |
commit | 5d41d5e0f4b547fd84126f836cccfd08862cb05a (patch) | |
tree | d775a19ce336b9046b4bba8758999a325c8182fe /mysql-test/t/key.test | |
parent | 5845a6e55311f4189983aa1780225f91c3eecfbf (diff) | |
parent | 330eb045364a1079815c58a12ef9685b2c437b75 (diff) | |
download | mariadb-git-5d41d5e0f4b547fd84126f836cccfd08862cb05a.tar.gz |
Merge mysql.com:/home/mydev/mysql-4.1-4100
into mysql.com:/home/mydev/mysql-5.0-5000
Diffstat (limited to 'mysql-test/t/key.test')
-rw-r--r-- | mysql-test/t/key.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/t/key.test b/mysql-test/t/key.test index 91bd1ada8a4..ed9e15aa7cb 100644 --- a/mysql-test/t/key.test +++ b/mysql-test/t/key.test @@ -326,6 +326,20 @@ alter table t1 add key (c1,c1,c2); drop table t1; # +# Bug#12565 - ERROR 1034 when running simple UPDATE or DELETE +# on large MyISAM table +# +create table t1 ( + c1 int, + c2 varchar(20) not null, + primary key (c1), + key (c2(10)) +) engine=myisam; +insert into t1 values (1,''); +insert into t1 values (2,' \t\tTest String'); +insert into t1 values (3,' \n\tTest String'); +update t1 set c2 = 'New Test String' where c1 = 1; +select * from t1; # If we use a partial field for a key that is actually the length of the # field, and we extend the field, we end up with a key that includes the # whole new length of the field. |