You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require.Less(t, create0TS, dropTS, "first create should finish before drop")
268
268
require.Less(t, dropTS, create1TS, "second create should finish after drop")
269
269
}
270
+
271
+
funcTestFix56930(t*testing.T) {
272
+
store:=testkit.CreateMockStore(t)
273
+
tk:=testkit.NewTestKit(t, store)
274
+
tk.MustExec("use test")
275
+
tk.MustExec("drop table if exists t; create table posts (id int auto_increment primary key, title varchar(500) character set utf8, subtitle varchar(500) character set utf8, unique key(title, subtitle));")
276
+
tk.MustGetErrMsg("alter table posts convert to character set utf8mb4;", "[ddl:1071]Specified key was too long (4000 bytes); max key length is 3072 bytes")
277
+
tk.MustExec("drop table if exists t; create table t(a varchar(1000) character set utf8, primary key(a));")
278
+
tk.MustGetErrMsg("alter table t convert to character set utf8mb4;", "[ddl:1071]Specified key was too long (4000 bytes); max key length is 3072 bytes")
279
+
tk.MustExec("drop table if exists t; create table t(a varchar(1000) character set utf8, key(a));")
280
+
tk.MustGetErrMsg("alter table t convert to character set utf8mb4;", "[ddl:1071]Specified key was too long (4000 bytes); max key length is 3072 bytes")
0 commit comments