Skip to content

Commit

Permalink
add widen_pk.test
Browse files Browse the repository at this point in the history
  • Loading branch information
lidezhu authored and ti-chi-bot committed Dec 1, 2021
1 parent e9c9dc3 commit 099d7c5
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tests/fullstack-test2/ddl/widen_pk.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
mysql> drop table if exists test.t
mysql> create table test.t(a int primary key)
mysql> alter table test.t set tiflash replica 1

func> wait_table test t

mysql> insert into test.t values(1);

mysql> select /*+ read_from_storage(tiflash[t]) */ * from test.t;
+---+
| a |
+---+
| 1 |
+---+

>> DBGInvoke __enable_schema_sync_service('false')

mysql> alter table test.t modify column a bigint;

mysql> insert into test.t values(9223372036854775807);

mysql> select /*+ read_from_storage(tiflash[t]) */ * from test.t;
+---------------------+
| a |
+---------------------+
| 1 |
| 9223372036854775807 |
+---------------------+

0 comments on commit 099d7c5

Please sign in to comment.