summaryrefslogtreecommitdiff
path: root/mysql-test/t/key.test
diff options
context:
space:
mode:
authoringo@mysql.com <>2005-08-29 18:18:30 +0200
committeringo@mysql.com <>2005-08-29 18:18:30 +0200
commit5d41d5e0f4b547fd84126f836cccfd08862cb05a (patch)
treed775a19ce336b9046b4bba8758999a325c8182fe /mysql-test/t/key.test
parent5845a6e55311f4189983aa1780225f91c3eecfbf (diff)
parent330eb045364a1079815c58a12ef9685b2c437b75 (diff)
downloadmariadb-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.test14
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.