diff options
author | unknown <ingo@mysql.com> | 2005-08-29 18:18:30 +0200 |
---|---|---|
committer | unknown <ingo@mysql.com> | 2005-08-29 18:18:30 +0200 |
commit | 194a520d215ff8a3f5fd672e3bb1fc991ec38dc8 (patch) | |
tree | d775a19ce336b9046b4bba8758999a325c8182fe /mysql-test/t/key.test | |
parent | 27201ccb064b7b2e851ada4610d7b20ffc37679d (diff) | |
parent | ea363750277d129ff466c51fd7e278d09c85a709 (diff) | |
download | mariadb-git-194a520d215ff8a3f5fd672e3bb1fc991ec38dc8.tar.gz |
Merge mysql.com:/home/mydev/mysql-4.1-4100
into mysql.com:/home/mydev/mysql-5.0-5000
myisam/mi_search.c:
Auto merged
mysql-test/r/alter_table.result:
Auto merged
mysql-test/t/alter_table.test:
Auto merged
mysql-test/t/innodb.test:
Auto merged
sql/sql_table.cc:
Auto merged
mysql-test/r/innodb.result:
Hand merged.
mysql-test/r/key.result:
Hand merged.
mysql-test/r/myisam.result:
Hand merged.
mysql-test/t/key.test:
Hand merged.
mysql-test/t/myisam.test:
Hand merged.
sql/sql_delete.cc:
Hand merged.
sql/sql_parse.cc:
Hand merged.
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. |