mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 23:54:31 +02:00
Increase limit of partial key length in MEMORY storage engine
to the same as a full key. (Bug #10566) mysql-test/r/heap.result: Update results mysql-test/t/heap.test: Add test for bug #10566 sql/ha_heap.h: Add max_supported_key_part_length() method.
This commit is contained in:
parent
edcc645b8e
commit
6ae9eb48d5
3 changed files with 15 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue