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
insert into t1 values ( 1,"e"),(2,"a"),( 3,"c"),(4,"d");
68
68
alter table t1 drop primary key, add primary key (f2, f1);
69
69
explain select distinct f1 a, f1 b from t1;
70
70
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
71
-
1 SIMPLE t1 NULL index PRIMARY PRIMARY 5 NULL 4 100.00 Using index; Using temporary
71
+
1 SIMPLE t1 NULL index PRIMARY PRIMARY 8 NULL 4 100.00 Using index; Using temporary
72
72
Warnings:
73
73
Note 1003 /* select#1 */ select distinct `test`.`t1`.`f1` AS `a`,`test`.`t1`.`f1` AS `b` from `test`.`t1`
74
74
explain select distinct f1, f2 from t1;
75
75
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
76
-
1 SIMPLE t1 NULL index PRIMARY PRIMARY 5 NULL 4 100.00 Using index
76
+
1 SIMPLE t1 NULL index PRIMARY PRIMARY 8 NULL 4 100.00 Using index
77
77
Warnings:
78
78
Note 1003 /* select#1 */ select distinct `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f2` AS `f2` from `test`.`t1`
79
79
drop table t1;
@@ -103,23 +103,24 @@ End of 5.1 tests
103
103
# Bug#12540545 61101: ASSERTION FAILURE IN THREAD 1256741184 IN
104
104
# FILE /BUILDDIR/BUILD/BUILD/MYSQ
105
105
#
106
-
CREATE TABLE t1 (a CHAR(1), b CHAR(1), PRIMARY KEY (a,b)) ENGINE=InnoDB;
106
+
CREATE TABLE t1 (a CHAR(1), b CHAR(1), PRIMARY KEY (a,b))
107
+
charset utf8mb4 ENGINE=InnoDB;
107
108
INSERT INTO t1 VALUES ('a', 'b'), ('c', 'd');
108
109
EXPLAIN SELECT COUNT(DISTINCT a) FROM t1 WHERE b = 'b';
109
110
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
110
-
1 SIMPLE t1 NULL index PRIMARY PRIMARY 2 NULL 2 50.00 Using where; Using index
111
+
1 SIMPLE t1 NULL index PRIMARY PRIMARY 8 NULL 2 50.00 Using where; Using index
111
112
Warnings:
112
113
Note 1003 /* select#1 */ select count(distinct `test`.`t1`.`a`) AS `COUNT(DISTINCT a)` from `test`.`t1` where (`test`.`t1`.`b` = 'b')
113
114
SELECT COUNT(DISTINCT a) FROM t1 WHERE b = 'b';
114
115
COUNT(DISTINCT a)
115
116
1
116
117
DROP TABLE t1;
117
118
CREATE TABLE t1 (a CHAR(1) NOT NULL, b CHAR(1) NOT NULL, UNIQUE KEY (a,b))
118
-
ENGINE=InnoDB;
119
+
charset utf8mb4 ENGINE=InnoDB;
119
120
INSERT INTO t1 VALUES ('a', 'b'), ('c', 'd');
120
121
EXPLAIN SELECT COUNT(DISTINCT a) FROM t1 WHERE b = 'b';
121
122
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
122
-
1 SIMPLE t1 NULL index a a 2 NULL 2 50.00 Using where; Using index
123
+
1 SIMPLE t1 NULL index a a 8 NULL 2 50.00 Using where; Using index
123
124
Warnings:
124
125
Note 1003 /* select#1 */ select count(distinct `test`.`t1`.`a`) AS `COUNT(DISTINCT a)` from `test`.`t1` where (`test`.`t1`.`b` = 'b')
125
126
SELECT COUNT(DISTINCT a) FROM t1 WHERE b = 'b';
@@ -141,7 +142,7 @@ c1 CHAR(1) NOT NULL,
141
142
i1 INTEGER NOT NULL,
142
143
i2 INTEGER NOT NULL,
143
144
UNIQUE KEY k1 (c1,i2)
144
-
) ENGINE=InnoDB;
145
+
) charset utf8mb4 ENGINE=InnoDB;
145
146
INSERT INTO t1 SELECT 'A',i1,i1 FROM t0;
146
147
INSERT INTO t1 SELECT 'B',i1,i1 FROM t0;
147
148
INSERT INTO t1 SELECT 'C',i1,i1 FROM t0;
@@ -153,7 +154,7 @@ c1 CHAR(1) NOT NULL,
153
154
i1 INTEGER NOT NULL,
154
155
i2 INTEGER NOT NULL,
155
156
UNIQUE KEY k2 (c1,i1,i2)
156
-
) ENGINE=InnoDB;
157
+
) charset utf8mb4 ENGINE=InnoDB;
157
158
INSERT INTO t2 SELECT 'A',i1,i1 FROM t0;
158
159
INSERT INTO t2 SELECT 'B',i1,i1 FROM t0;
159
160
INSERT INTO t2 SELECT 'C',i1,i1 FROM t0;
@@ -168,7 +169,7 @@ set end_markers_in_json=on;
168
169
EXPLAIN SELECT c1, max(i2) FROM t1 WHERE (c1 = 'C' AND i2 = 17) OR ( c1 = 'F')
169
170
GROUP BY c1;
170
171
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
171
-
1 SIMPLE t1 NULL range k1 k1 5 NULL ROWS 100.00 Using where; Using index
172
+
1 SIMPLE t1 NULL range k1 k1 8 NULL ROWS 100.00 Using where; Using index
172
173
Warnings:
173
174
Note 1003 /* select#1 */ select `test`.`t1`.`c1` AS `c1`,max(`test`.`t1`.`i2`) AS `max(i2)` from `test`.`t1` where (((`test`.`t1`.`i2` = 17) and (`test`.`t1`.`c1` = 'C')) or (`test`.`t1`.`c1` = 'F')) group by `test`.`t1`.`c1`
174
175
SELECT c1, max(i2) FROM t1 WHERE (c1 = 'C' AND i2 = 17) OR ( c1 = 'F')
@@ -183,7 +184,7 @@ OK
183
184
EXPLAIN SELECT c1, max(i2) FROM t1 WHERE (c1 = 'C' OR ( c1 = 'F' AND i2 = 17))
184
185
GROUP BY c1;
185
186
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
186
-
1 SIMPLE t1 NULL range k1 k1 5 NULL ROWS 100.00 Using where; Using index
187
+
1 SIMPLE t1 NULL range k1 k1 8 NULL ROWS 100.00 Using where; Using index
187
188
Warnings:
188
189
Note 1003 /* select#1 */ select `test`.`t1`.`c1` AS `c1`,max(`test`.`t1`.`i2`) AS `max(i2)` from `test`.`t1` where ((`test`.`t1`.`c1` = 'C') or ((`test`.`t1`.`i2` = 17) and (`test`.`t1`.`c1` = 'F'))) group by `test`.`t1`.`c1`
189
190
SELECT c1, max(i2) FROM t1 WHERE (c1 = 'C' OR ( c1 = 'F' AND i2 = 17))
@@ -198,7 +199,7 @@ OK
198
199
EXPLAIN SELECT c1, max(i2) FROM t1 WHERE (c1 = 'C' OR c1 = 'F' ) AND ( i2 = 17 )
199
200
GROUP BY c1;
200
201
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
201
-
1 SIMPLE t1 NULL range k1 k1 5 NULL ROWS 100.00 Using where; Using index for group-by
202
+
1 SIMPLE t1 NULL range k1 k1 8 NULL ROWS 100.00 Using where; Using index for group-by
202
203
Warnings:
203
204
Note 1003 /* select#1 */ select `test`.`t1`.`c1` AS `c1`,max(`test`.`t1`.`i2`) AS `max(i2)` from `test`.`t1` where ((`test`.`t1`.`i2` = 17) and ((`test`.`t1`.`c1` = 'C') or (`test`.`t1`.`c1` = 'F'))) group by `test`.`t1`.`c1`
204
205
SELECT c1, max(i2) FROM t1 WHERE (c1 = 'C' OR c1 = 'F' ) AND ( i2 = 17 )
@@ -214,7 +215,7 @@ EXPLAIN SELECT c1, max(i2) FROM t1
214
215
WHERE ((c1 = 'C' AND (i2 = 40 OR i2 = 30)) OR ( c1 = 'F' AND (i2 = 40 )))
215
216
GROUP BY c1;
216
217
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
217
-
1 SIMPLE t1 NULL range k1 k1 5 NULL ROWS 100.00 Using where; Using index
218
+
1 SIMPLE t1 NULL range k1 k1 8 NULL ROWS 100.00 Using where; Using index
218
219
Warnings:
219
220
Note 1003 /* select#1 */ select `test`.`t1`.`c1` AS `c1`,max(`test`.`t1`.`i2`) AS `max(i2)` from `test`.`t1` where (((`test`.`t1`.`c1` = 'C') and ((`test`.`t1`.`i2` = 40) or (`test`.`t1`.`i2` = 30))) or ((`test`.`t1`.`i2` = 40) and (`test`.`t1`.`c1` = 'F'))) group by `test`.`t1`.`c1`
WHERE (c1 = 'C' OR ( c1 = 'F' AND i1 < 35)) AND ( i2 = 17 )
231
232
GROUP BY c1,i1;
232
233
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
233
-
1 SIMPLE t2 NULL range k2 k2 5 NULL ROWS 10.00 Using where; Using index
234
+
1 SIMPLE t2 NULL range k2 k2 8 NULL ROWS 10.00 Using where; Using index
234
235
Warnings:
235
236
Note 1003 /* select#1 */ select `test`.`t2`.`c1` AS `c1`,`test`.`t2`.`i1` AS `i1`,max(`test`.`t2`.`i2`) AS `max(i2)` from `test`.`t2` where ((`test`.`t2`.`i2` = 17) and ((`test`.`t2`.`c1` = 'C') or ((`test`.`t2`.`c1` = 'F') and (`test`.`t2`.`i1` < 35)))) group by `test`.`t2`.`c1`,`test`.`t2`.`i1`
WHERE (((c1 = 'C' AND i1 < 40) OR ( c1 = 'F' AND i1 < 35)) AND ( i2 = 17 ))
248
249
GROUP BY c1,i1;
249
250
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
250
-
1 SIMPLE t2 NULL range k2 k2 5 NULL ROWS 10.00 Using where; Using index
251
+
1 SIMPLE t2 NULL range k2 k2 8 NULL ROWS 10.00 Using where; Using index
251
252
Warnings:
252
253
Note 1003 /* select#1 */ select `test`.`t2`.`c1` AS `c1`,`test`.`t2`.`i1` AS `i1`,max(`test`.`t2`.`i2`) AS `max(i2)` from `test`.`t2` where ((`test`.`t2`.`i2` = 17) and (((`test`.`t2`.`c1` = 'C') and (`test`.`t2`.`i1` < 40)) or ((`test`.`t2`.`c1` = 'F') and (`test`.`t2`.`i1` < 35)))) group by `test`.`t2`.`c1`,`test`.`t2`.`i1`
WHERE ((c1 = 'C' AND i1 < 40) OR ( c1 = 'F' AND i1 < 35) OR ( i2 = 17 ))
265
266
GROUP BY c1,i1;
266
267
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
267
-
1 SIMPLE t2 NULL index k2 k2 9 NULL ROWS 19.72 Using where; Using index
268
+
1 SIMPLE t2 NULL index k2 k2 12 NULL ROWS 15.90 Using where; Using index
268
269
Warnings:
269
270
Note 1003 /* select#1 */ select `test`.`t2`.`c1` AS `c1`,`test`.`t2`.`i1` AS `i1`,max(`test`.`t2`.`i2`) AS `max(i2)` from `test`.`t2` where (((`test`.`t2`.`c1` = 'C') and (`test`.`t2`.`i1` < 40)) or ((`test`.`t2`.`c1` = 'F') and (`test`.`t2`.`i1` < 35)) or (`test`.`t2`.`i2` = 17)) group by `test`.`t2`.`c1`,`test`.`t2`.`i1`
270
271
SELECT c1, i1, max(i2) FROM t2
@@ -351,7 +352,7 @@ CREATE TABLE t1 (
351
352
pk_col INT AUTO_INCREMENT PRIMARY KEY,
352
353
a1 CHAR(64),
353
354
KEY a1_idx (a1)
354
-
) ENGINE=INNODB;
355
+
) charset utf8mb4 ENGINE=INNODB;
355
356
INSERT INTO t1 (a1) VALUES ('a'),('a'),('a'),('a'), ('a');
356
357
CREATE TABLE t2 (
357
358
pk_col1 INT NOT NULL,
@@ -361,7 +362,7 @@ a2 CHAR(64),
361
362
PRIMARY KEY(pk_col1, pk_col2),
362
363
KEY a1_idx (a1),
363
364
KEY a1_a2_idx (a1, a2)
364
-
) ENGINE=INNODB;
365
+
) charset utf8mb4 ENGINE=INNODB;
365
366
INSERT INTO t2 (pk_col1, pk_col2, a1, a2) VALUES (1,1,'a','b'),(1,2,'a','b'),
366
367
(1,3,'a','c'),(1,4,'a','c'),
367
368
(2,1,'a','d');
@@ -375,9 +376,9 @@ EXPLAIN SELECT DISTINCT a1
375
376
FROM t1
376
377
WHERE (pk_col = 2 OR pk_col = 22) AND a1 = 'a';
377
378
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
378
-
1 SIMPLE t1 NULL range PRIMARY,a1_idx a1_idx 69 NULL 2 100.00 Using where; Using index
379
+
1 SIMPLE t1 NULL range PRIMARY,a1_idx a1_idx 261 NULL 2 100.00 Using where; Using index
379
380
Warnings:
380
-
Note 1003 /* select#1 */ select distinct `test`.`t1`.`a1` AS `a1` from `test`.`t1` where ((`test`.`t1`.`a1` = 'a') and ((`test`.`t1`.`pk_col` = 2) or (`test`.`t1`.`pk_col` = 22)))
381
+
Note 1003 /* select#1 */ select distinct `test`.`t1`.`a1` AS `a1` from `test`.`t1` where (((`test`.`t1`.`pk_col` = 2) or (`test`.`t1`.`pk_col` = 22)) and (`test`.`t1`.`a1` = 'a'))
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
390
-
1 SIMPLE t1 NULL range a1_idx a1_idx 69 NULL 6 100.00 Using index for group-by (scanning)
391
+
1 SIMPLE t1 NULL range a1_idx a1_idx 261 NULL 6 100.00 Using index for group-by (scanning)
391
392
Warnings:
392
393
Note 1003 /* select#1 */ select count(distinct `test`.`t1`.`a1`) AS `COUNT(DISTINCT a1)` from `test`.`t1` group by `test`.`t1`.`a1`,`test`.`t1`.`pk_col`
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
406
-
1 SIMPLE t2 NULL range a1_idx,a1_a2_idx a1_idx 69 NULL 3 100.00 Using index for group-by
407
+
1 SIMPLE t2 NULL range a1_idx,a1_a2_idx a1_idx 261 NULL 3 100.00 Using index for group-by
407
408
Warnings:
408
409
Note 1003 /* select#1 */ select count(distinct `test`.`t2`.`a1`) AS `COUNT(DISTINCT a1)` from `test`.`t2` group by `test`.`t2`.`a1`,`test`.`t2`.`pk_col1`
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
419
-
1 SIMPLE t2 NULL range a1_a2_idx a1_a2_idx 130 NULL 4 100.00 Using index for group-by (scanning)
420
+
1 SIMPLE t2 NULL range a1_a2_idx a1_a2_idx 514 NULL 4 100.00 Using index for group-by (scanning)
420
421
Warnings:
421
422
Note 1003 /* select#1 */ select count(distinct `test`.`t2`.`a1`) AS `COUNT(DISTINCT a1)` from `test`.`t2` group by `test`.`t2`.`a1`,`test`.`t2`.`a2`
422
423
SELECT COUNT(DISTINCT a1)
@@ -432,9 +433,9 @@ EXPLAIN SELECT DISTINCT a1
432
433
FROM t1
433
434
WHERE (pk_col = 2 OR pk_col = 22) AND a1 = 'a';
434
435
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
435
-
1 SIMPLE t1 NULL ref PRIMARY,a1_idx a1_idx 65 const 5 40.00 Using where; Using index
436
+
1 SIMPLE t1 NULL ref PRIMARY,a1_idx a1_idx 257 const 5 40.00 Using where; Using index
436
437
Warnings:
437
-
Note 1003 /* select#1 */ select distinct `test`.`t1`.`a1` AS `a1` from `test`.`t1` where ((`test`.`t1`.`a1` = 'a') and ((`test`.`t1`.`pk_col` = 2) or (`test`.`t1`.`pk_col` = 22)))
438
+
Note 1003 /* select#1 */ select distinct `test`.`t1`.`a1` AS `a1` from `test`.`t1` where (((`test`.`t1`.`pk_col` = 2) or (`test`.`t1`.`pk_col` = 22)) and (`test`.`t1`.`a1` = 'a'))
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
447
-
1 SIMPLE t1 NULL index a1_idx a1_idx 65 NULL 5 100.00 Using index
448
+
1 SIMPLE t1 NULL index a1_idx a1_idx 257 NULL 5 100.00 Using index
448
449
Warnings:
449
450
Note 1003 /* select#1 */ select count(distinct `test`.`t1`.`a1`) AS `COUNT(DISTINCT a1)` from `test`.`t1` group by `test`.`t1`.`a1`,`test`.`t1`.`pk_col`
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
463
-
1 SIMPLE t2 NULL index a1_idx,a1_a2_idx a1_idx 65 NULL 5 100.00 Using index
464
+
1 SIMPLE t2 NULL index a1_idx,a1_a2_idx a1_idx 257 NULL 5 100.00 Using index
464
465
Warnings:
465
466
Note 1003 /* select#1 */ select count(distinct `test`.`t2`.`a1`) AS `COUNT(DISTINCT a1)` from `test`.`t2` group by `test`.`t2`.`a1`,`test`.`t2`.`pk_col1`
Note 1003 /* select#1 */ select `test`.`t1`.`btn` AS `btn`,`test`.`t1`.`new_col` AS `new_col` from `test`.`t1` where ((`test`.`t1`.`new_col` = 'a') and (`test`.`t1`.`btn` = 'a'))
185
+
Note 1003 /* select#1 */ select `test`.`t1`.`btn` AS `btn`,`test`.`t1`.`new_col` AS `new_col` from `test`.`t1` where ((`test`.`t1`.`btn` = 'a') and (`test`.`t1`.`new_col` = 'a'))
186
186
drop table t1;
187
187
CREATE TABLE t1 (
188
188
a int default NULL,
@@ -269,7 +269,7 @@ a
269
269
2
270
270
drop table t1;
271
271
set default_storage_engine=HEAP;
272
-
create table t1 (v varchar(10), c char(10), t varchar(50));
272
+
create table t1 (v varchar(10), c char(10), t varchar(50)) charset utf8mb4;
273
273
insert into t1 values('+ ', '+ ', '+ ');
274
274
set @a=repeat(' ',20);
275
275
insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
@@ -285,39 +285,39 @@ t1 CREATE TABLE `t1` (
285
285
`v` varchar(10) DEFAULT NULL,
286
286
`c` char(10) DEFAULT NULL,
287
287
`t` varchar(50) DEFAULT NULL
288
-
) ENGINE=MEMORY DEFAULT CHARSET=latin1
288
+
) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4
289
289
create table t2 like t1;
290
290
show create table t2;
291
291
Table Create Table
292
292
t2 CREATE TABLE `t2` (
293
293
`v` varchar(10) DEFAULT NULL,
294
294
`c` char(10) DEFAULT NULL,
295
295
`t` varchar(50) DEFAULT NULL
296
-
) ENGINE=MEMORY DEFAULT CHARSET=latin1
297
-
create table t3 select * from t1;
296
+
) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4
297
+
create table t3 charset utf8mb4 select * from t1;
298
298
show create table t3;
299
299
Table Create Table
300
300
t3 CREATE TABLE `t3` (
301
301
`v` varchar(10) DEFAULT NULL,
302
302
`c` char(10) DEFAULT NULL,
303
303
`t` varchar(50) DEFAULT NULL
304
-
) ENGINE=MEMORY DEFAULT CHARSET=latin1
304
+
) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4
305
305
alter table t1 modify c varchar(10);
306
306
show create table t1;
307
307
Table Create Table
308
308
t1 CREATE TABLE `t1` (
309
309
`v` varchar(10) DEFAULT NULL,
310
310
`c` varchar(10) DEFAULT NULL,
311
311
`t` varchar(50) DEFAULT NULL
312
-
) ENGINE=MEMORY DEFAULT CHARSET=latin1
312
+
) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4
313
313
alter table t1 modify v char(10);
314
314
show create table t1;
315
315
Table Create Table
316
316
t1 CREATE TABLE `t1` (
317
317
`v` char(10) DEFAULT NULL,
318
318
`c` varchar(10) DEFAULT NULL,
319
319
`t` varchar(50) DEFAULT NULL
320
-
) ENGINE=MEMORY DEFAULT CHARSET=latin1
320
+
) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4
321
321
SET sql_mode = 'NO_ENGINE_SUBSTITUTION';
322
322
Warnings:
323
323
Warning 3090 Changing sql mode 'NO_AUTO_CREATE_USER' is deprecated. It will be removed in a future release.
@@ -331,13 +331,13 @@ t1 CREATE TABLE `t1` (
331
331
`v` char(10) DEFAULT NULL,
332
332
`c` varchar(10) DEFAULT NULL,
333
333
`t` varchar(10) DEFAULT NULL
334
-
) ENGINE=MEMORY DEFAULT CHARSET=latin1
334
+
) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4
335
335
select concat('*',v,'*',c,'*',t,'*') from t1;
336
336
concat('*',v,'*',c,'*',t,'*')
337
337
*+*+*+ *
338
338
*+*+*+ *
339
339
drop table t1,t2,t3;
340
-
create table t1 (v varchar(10), c char(10), t varchar(50), key(v), key(c), key(t(10)));
340
+
create table t1 (v varchar(10), c char(10), t varchar(50), key(v), key(c), key(t(10))) charset latin1;
341
341
show create table t1;
342
342
Table Create Table
343
343
t1 CREATE TABLE `t1` (
@@ -585,7 +585,7 @@ ERROR 23000: Duplicate entry 'a ' for key 'a'
585
585
update t1 set a='a ' where a like 'a ';
586
586
update t1 set a='a ' where a like 'a ';
587
587
drop table t1;
588
-
create table t1 (v varchar(10), c char(10), t varchar(50), key using btree (v), key using btree (c), key using btree (t(10)));
588
+
create table t1 (v varchar(10), c char(10), t varchar(50), key using btree (v), key using btree (c), key using btree (t(10))) charset latin1;
589
589
show create table t1;
590
590
Table Create Table
591
591
t1 CREATE TABLE `t1` (
@@ -690,7 +690,7 @@ ERROR 23000: Duplicate entry 'a ' for key 'a'
690
690
update t1 set a='a ' where a like 'a ';
691
691
update t1 set a='a ' where a like 'a ';
692
692
drop table t1;
693
-
create table t1 (v varchar(10), c char(10), t varchar(50), key(v(5)), key(c(5)), key(t(5)));
693
+
create table t1 (v varchar(10), c char(10), t varchar(50), key(v(5)), key(c(5)), key(t(5))) charset utf8mb4;
694
694
show create table t1;
695
695
Table Create Table
696
696
t1 CREATE TABLE `t1` (
@@ -700,9 +700,9 @@ t1 CREATE TABLE `t1` (
700
700
KEY `v` (`v`(5)),
701
701
KEY `c` (`c`(5)),
702
702
KEY `t` (`t`(5))
703
-
) ENGINE=MEMORY DEFAULT CHARSET=latin1
703
+
) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4
704
704
drop table t1;
705
-
create table t1 (v varchar(65530), key(v(10)));
705
+
create table t1 (v varchar(65530), key(v(10))) charset latin1;
706
706
show create table t1;
707
707
Table Create Table
708
708
t1 CREATE TABLE `t1` (
@@ -764,16 +764,16 @@ select * from t1 where a = 0;
0 commit comments