@@ -252,7 +252,7 @@ DROP INDEX kij ON t1;
252
252
SHOW CREATE TABLE t1;
253
253
Table Create Table
254
254
t1 CREATE TABLE `t1` (
255
- `i` int(11) NOT NULL DEFAULT '0' ,
255
+ `i` int(11) NOT NULL,
256
256
`j` int(11) DEFAULT NULL,
257
257
`k` int(11) DEFAULT NULL,
258
258
PRIMARY KEY (`i`),
@@ -282,10 +282,10 @@ INSERT INTO t1 (a, b) VALUES (2, 6);
282
282
INSERT INTO t1 (a, b) VALUES (3, 7);
283
283
# crash_during_online_index_creation
284
284
flush logs;
285
- SET SESSION debug ="+d,crash_during_online_index_creation";
285
+ SET SESSION debug_dbug ="+d,crash_during_online_index_creation";
286
286
ALTER TABLE t1 ADD INDEX kb(b), ALGORITHM=INPLACE;
287
287
ERROR HY000: Lost connection to MySQL server during query
288
- SET SESSION debug ="-d,crash_during_online_index_creation";
288
+ SET SESSION debug_dbug ="-d,crash_during_online_index_creation";
289
289
SHOW CREATE TABLE t1;
290
290
Table Create Table
291
291
t1 CREATE TABLE `t1` (
@@ -301,14 +301,14 @@ DROP TABLE t1;
301
301
CREATE TABLE t1 (i INT, j INT, k INT, PRIMARY KEY (i), KEY(j)) ENGINE = ROCKSDB PARTITION BY KEY(i) PARTITIONS 4;
302
302
# crash_during_index_creation_partition
303
303
flush logs;
304
- SET SESSION debug ="+d,crash_during_index_creation_partition";
304
+ SET SESSION debug_dbug ="+d,crash_during_index_creation_partition";
305
305
ALTER TABLE t1 ADD INDEX kij(i,j), ALGORITHM=INPLACE;
306
306
ERROR HY000: Lost connection to MySQL server during query
307
- SET SESSION debug ="-d,crash_during_index_creation_partition";
307
+ SET SESSION debug_dbug ="-d,crash_during_index_creation_partition";
308
308
SHOW CREATE TABLE t1;
309
309
Table Create Table
310
310
t1 CREATE TABLE `t1` (
311
- `i` int(11) NOT NULL DEFAULT '0' ,
311
+ `i` int(11) NOT NULL,
312
312
`j` int(11) DEFAULT NULL,
313
313
`k` int(11) DEFAULT NULL,
314
314
PRIMARY KEY (`i`),
@@ -336,17 +336,17 @@ DROP TABLE t1;
336
336
CREATE TABLE t1 (i INT, j INT, k INT, PRIMARY KEY (i), KEY(j)) ENGINE = ROCKSDB PARTITION BY KEY(i) PARTITIONS 4;
337
337
# crash_during_index_creation_partition
338
338
flush logs;
339
- SET SESSION debug ="+d,myrocks_simulate_index_create_rollback";
339
+ SET SESSION debug_dbug ="+d,myrocks_simulate_index_create_rollback";
340
340
# expected assertion failure from sql layer here for alter rollback
341
341
call mtr.add_suppression("Assertion `0' failed.");
342
342
call mtr.add_suppression("Attempting backtrace. You can use the following information to find out");
343
343
ALTER TABLE t1 ADD INDEX kij(i,j), ALGORITHM=INPLACE;
344
344
ERROR HY000: Lost connection to MySQL server during query
345
- SET SESSION debug ="-d,myrocks_simulate_index_create_rollback";
345
+ SET SESSION debug_dbug ="-d,myrocks_simulate_index_create_rollback";
346
346
SHOW CREATE TABLE t1;
347
347
Table Create Table
348
348
t1 CREATE TABLE `t1` (
349
- `i` int(11) NOT NULL DEFAULT '0' ,
349
+ `i` int(11) NOT NULL,
350
350
`j` int(11) DEFAULT NULL,
351
351
`k` int(11) DEFAULT NULL,
352
352
PRIMARY KEY (`i`),
@@ -358,7 +358,7 @@ ALTER TABLE t1 ADD INDEX kij(i,j), ALGORITHM=INPLACE;
358
358
SHOW CREATE TABLE t1;
359
359
Table Create Table
360
360
t1 CREATE TABLE `t1` (
361
- `i` int(11) NOT NULL DEFAULT '0' ,
361
+ `i` int(11) NOT NULL,
362
362
`j` int(11) DEFAULT NULL,
363
363
`k` int(11) DEFAULT NULL,
364
364
PRIMARY KEY (`i`),
@@ -371,8 +371,11 @@ SELECT COUNT(*) FROM t1;
371
371
COUNT(*)
372
372
100
373
373
DROP TABLE t1;
374
+ set @tmp_rocksdb_strict_collation_check= @@rocksdb_strict_collation_check;
375
+ set global rocksdb_strict_collation_check=1;
374
376
CREATE TABLE t1 (a INT, b TEXT);
375
377
ALTER TABLE t1 ADD KEY kb(b(10));
376
378
ERROR HY000: Unsupported collation on string indexed column test.t1.b Use binary collation (binary, latin1_bin, utf8_bin).
377
379
ALTER TABLE t1 ADD PRIMARY KEY(a);
378
380
DROP TABLE t1;
381
+ set global rocksdb_strict_collation_check= @tmp_rocksdb_strict_collation_check;
0 commit comments