The case breaks the br integration test.
First turn off the mutation checker because it will find the inconsistency and abort the statement.
MySQL root@127.0.0.1:test> set @@tidb_enable_mutation_checker = 0;
Query OK, 0 rows affected
Time: 0.000s
MySQL root@127.0.0.1:test> CREATE TABLE `enum-set` (`set` SET(
-> 'x00','x01','x02','x03','x04','x05','x06','x07','x08','x09','x10','x11','x12','x13','x14','x15',
-> 'x16','x17','x18','x19','x20','x21','x22','x23','x24','x25','x26','x27','x28','x29','x30','x31',
-> 'x32','x33','x34','x35','x36','x37','x38','x39','x40','x41','x42','x43','x44','x45','x46','x47',
-> 'x48','x49','x50','x51','x52','x53','x54','x55','x56','x57','x58','x59','x60','x61','x62','x63'
-> ) NOT NULL PRIMARY KEY);
Query OK, 0 rows affected
Time: 0.110s
MySQL root@127.0.0.1:test> INSERT INTO `enum-set` VALUES("x00,x59");
Query OK, 1 row affected
Time: 0.007s
MySQL root@127.0.0.1:test> select `set` from `enum-set` where `set` like '%x00';
+-----+
| set |
+-----+
+-----+
0 rows in set
Time: 0.008s
MySQL root@127.0.0.1:test> select `set` from `enum-set` use index(PRIMARY);
+-----+
| set |
+-----+
| x59 |
+-----+
1 row in set
Time: 0.005s
MySQL root@127.0.0.1:test> select `set` from `enum-set` use index();
+---------+
| set |
+---------+
| x00,x59 |
+---------+
1 row in set
Time: 0.008s
MySQL root@127.0.0.1:test> admin check table `enum-set`;
(8134, 'data inconsistency in table: enum-set, index: PRIMARY, col: set, handle: "1", index-values:"KindMysqlSet x59" != record-values:"KindMysqlSet x00,x59", compare err:<nil>')
Consistent results.
master.
Bug Report
The case breaks the br integration test.
1. Minimal reproduce step (Required)
First turn off the mutation checker because it will find the inconsistency and abort the statement.
2. What did you expect to see? (Required)
Consistent results.
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master.