mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
if a key length exceeds the supported maximum and it is safe to auto-decrease it, do it.
This commit is contained in:
@ -323,10 +323,10 @@ Table Op Msg_type Msg_text
|
||||
test.t1 check status OK
|
||||
drop table t1;
|
||||
CREATE TABLE t1 (a varchar(255), b varchar(255), c varchar(255), KEY t1 (a, b, c));
|
||||
ERROR 42000: Specified key was too long. Max key length is 500
|
||||
ERROR 42000: Specified key was too long; max key length is 500 bytes
|
||||
CREATE TABLE t1 (a varchar(255), b varchar(255), c varchar(255));
|
||||
ALTER TABLE t1 ADD INDEX t1 (a, b, c);
|
||||
ERROR 42000: Specified key was too long. Max key length is 500
|
||||
ERROR 42000: Specified key was too long; max key length is 500 bytes
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (a int not null, b int, c int, key(b), key(c), key(a,b), key(c,a));
|
||||
INSERT into t1 values (0, null, 0), (0, null, 1), (0, null, 2), (0, null,3), (1,1,4);
|
||||
|
Reference in New Issue
Block a user