summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/vcol/r/innodb_virtual_fk.result
blob: 58db12583e255fbf2b519142b38c1e0c3f4c2e66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
set default_storage_engine=innodb;
create table t1 (id int primary key, id2 int as (id) virtual, key id2 (id2));
create table t2 (id int key, constraint fk_id foreign key (id) references t1 (id) on delete cascade);
insert into t1 (id) values (1), (2);
insert into t2 (id) values (1), (2);
delete from t1;
select * from t1;
id	id2
select * from t2;
id
drop table t2;
drop table t1;