mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Bug #2699 UTF8 breaks primary keys for cols > 85 characters
This commit is contained in:
@ -167,3 +167,5 @@ select hex(s1) from t1;
|
||||
hex(s1)
|
||||
41
|
||||
drop table t1;
|
||||
create table t1 (a char(160) character set utf8, primary key(a));
|
||||
ERROR HY000: Incorrect sub part key. The used key part isn't a string, the used length is longer than the key part or the storage engine doesn't support unique sub keys
|
||||
|
@ -98,3 +98,10 @@ create table t1 (s1 text character set utf8);
|
||||
insert into t1 values (0x41FF);
|
||||
select hex(s1) from t1;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# Bug 2699
|
||||
# UTF8 breaks primary keys for cols > 85 characters
|
||||
#
|
||||
--error 1089
|
||||
create table t1 (a char(160) character set utf8, primary key(a));
|
||||
|
Reference in New Issue
Block a user