mirror of
https://github.com/MariaDB/server.git
synced 2025-02-13 17:05:35 +01:00
![Sergei Golubchik](/assets/img/avatar_default.png)
automatic shortening of a too-long non-unique key should be not a warning, but a note. It's a normal optimization, doesn't affect correctness, and should never be converted to an error, no matter how strict sql_mode is.
10 lines
309 B
Text
10 lines
309 B
Text
--source include/have_innodb.inc
|
|
#
|
|
# MDEV-11995 ALTER TABLE proceeds despite reporting ER_TOO_LONG_KEY error
|
|
#
|
|
set @@sql_mode=strict_trans_tables;
|
|
create table t1(a text not null) row_format=dynamic engine=innodb;
|
|
create index idx1 on t1(a(3073));
|
|
show create table t1;
|
|
drop table t1;
|
|
set @@sql_mode=default;
|