| 1 |
create table t1 (f1 tinyblob not null) engine=innodb; |
| 2 |
alter table t1 add unique index (f1(255)); |
| 3 |
drop table t1; |
| 4 |
create table t1 (f1 tinyblob not null) engine=innodb; |
| 5 |
alter table t1 add unique index (f1(356)); |
| 6 |
show create table t1; |
| 7 |
Table Create Table |
| 8 |
t1 CREATE TABLE `t1` ( |
| 9 |
`f1` tinyblob NOT NULL, |
| 10 |
UNIQUE KEY `f1` (`f1`(255)) |
| 11 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci |
| 12 |
drop table t1; |
| 13 |
create table t1 (f1 point not null) engine=innodb; |
| 14 |
alter table t1 add unique index (f1); |
| 15 |
drop table t1; |