Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
set new_collations_enabled_on_first_bootstrap: true
create table t1 ( c_int int, c_str varchar(40) character set latin1 collate latin1_bin, primary key(c_int, c_str(8)) clustered , key(c_int) , key(c_str) );
insert into t1 values (1, 'jovial edison');
admin check table t1;
2. What did you expect to see? (Required)
mysql> admin check table t1;
Query OK, 0 rows affected (0.06 sec)
3. What did you see instead (Required)
mysql> admin check table t1;
ERROR 1105 (HY000): handle &kv.CommonHandle{encoded:[]uint8{0x3, 0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf8}, colEndOffsets:[]uint16{0x9, 0x13}}, index:types.Datum{k:0x1, decimal:0x0, length:0x0, i:1, collation:"", b:[]uint8(nil), x:interface {}(nil)} != record:
4. What is your TiDB version? (Required)
Release Version: v5.0.1
Edition: Community
Git Commit Hash: 1145e34
Git Branch: heads/refs/tags/v5.0.1
UTC Build Time: 2021-04-23 07:32:04
GoVersion: go1.13
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
set new_collations_enabled_on_first_bootstrap: true
create table t1 ( c_int int, c_str varchar(40) character set latin1 collate latin1_bin, primary key(c_int, c_str(8)) clustered , key(c_int) , key(c_str) );
insert into t1 values (1, 'jovial edison');
admin check table t1;
2. What did you expect to see? (Required)
mysql> admin check table t1;
Query OK, 0 rows affected (0.06 sec)
3. What did you see instead (Required)
mysql> admin check table t1;
ERROR 1105 (HY000): handle &kv.CommonHandle{encoded:[]uint8{0x3, 0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf8}, colEndOffsets:[]uint16{0x9, 0x13}}, index:types.Datum{k:0x1, decimal:0x0, length:0x0, i:1, collation:"", b:[]uint8(nil), x:interface {}(nil)} != record:
4. What is your TiDB version? (Required)
Release Version: v5.0.1
Edition: Community
Git Commit Hash: 1145e34
Git Branch: heads/refs/tags/v5.0.1
UTC Build Time: 2021-04-23 07:32:04
GoVersion: go1.13
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false