-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
d54685e
commit 6665d6e
Showing
5 changed files
with
135 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
mysql> drop table if exists test.a1 | ||
mysql> create table test.a1(id int(11) NOT NULL AUTO_INCREMENT, name enum('A','B','C') DEFAULT NULL, PRIMARY KEY (id)); | ||
mysql> insert into test.a1 values (1,'A'),(2,'B'),(3,'C'); | ||
mysql> alter table test.a1 set tiflash replica 1; | ||
|
||
func> wait_table test a1 | ||
|
||
mysql> set session tidb_isolation_read_engines='tiflash'; select * from test.a1 order by id; | ||
+----+------+ | ||
| id | name | | ||
+----+------+ | ||
| 1 | A | | ||
| 2 | B | | ||
| 3 | C | | ||
+----+------+ | ||
|
||
mysql> alter table test.a1 change name name enum('A','B','C', 'D'); | ||
mysql> insert into test.a1 values (4,'D'); | ||
|
||
mysql> set session tidb_isolation_read_engines='tiflash'; select * from test.a1 order by id; | ||
+----+------+ | ||
| id | name | | ||
+----+------+ | ||
| 1 | A | | ||
| 2 | B | | ||
| 3 | C | | ||
| 4 | D | | ||
+----+------+ | ||
|
||
mysql> drop table if exists test.a1 |