diff options
author | unknown <jimw@mysql.com> | 2005-06-09 18:03:18 -0700 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-06-09 18:03:18 -0700 |
commit | 72724bd84b935cbe1222d04a8f18d09aea0a72fc (patch) | |
tree | 6f4427fccc5c17ca64d82d7b5129a9acc7e7d50a /mysql-test/t | |
parent | a323d527d46b7c7791cb580331921b170bcf2c22 (diff) | |
parent | 6ae9eb48d517a096ef5de054b71706f9c5351e65 (diff) | |
download | mariadb-git-72724bd84b935cbe1222d04a8f18d09aea0a72fc.tar.gz |
Merge mysql.com:/home/jimw/my/mysql-4.1-10566
into mysql.com:/home/jimw/my/mysql-4.1-clean
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/heap.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/heap.test b/mysql-test/t/heap.test index e082993a58e..c0977819487 100644 --- a/mysql-test/t/heap.test +++ b/mysql-test/t/heap.test @@ -224,3 +224,12 @@ insert t1 (a) values (1); insert t1 (a) values (1); select * from t1; drop table t1; + +# +# Bug #10566: Verify that we can create a prefixed key with length > 255 +# +create table t1 (c char(255), primary key(c(90))); +insert into t1 values ("abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"); +--error 1062 +insert into t1 values ("abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"); +drop table t1; |