summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/rpl/t/rpl_row_virt.test
blob: e79869cd8e483c7bd2482942cf9ef3e1984c11b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--source include/have_binlog_format_row.inc
--source include/master-slave.inc
--source include/have_innodb.inc
connection master;

create table t1 (
  id int auto_increment,
  data varchar(32),
  virt tinyint as (1),
  primary key (id),
  key virt (virt)
) engine=innodb default charset=utf8mb4;

insert into t1 (data) values ('broken');

update t1 set data='more broken';

--sync_slave_with_master

select * from t1;

--connection master
drop table t1;

--sync_slave_with_master

--source include/rpl_end.inc