You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
set @@global.tidb_enable_foreign_key=1;
set @@foreign_key_checks=1;
createtablet1 (id int key);
createtablet2 (id int key, a int, b int, foreign key fk_1 (a) references t1(id) ON DELETESETNULLONUPDATESETNULL, foreign key fk_2 (b) references t1(id) ON DELETE CASCADEONUPDATE CASCADE);
insert into t1 values (1), (2), (3);
insert into t2 values (1, 1, 1), (2, 2, 2), (3, 3, 3);
update t1 set id=id+10where id in (1, 3);
deletefrom t1 where id =2;
2. What did you expect to see? (Required)
>select*from t2;
+----+--------+----+
| id | a | b |
+----+--------+----+
| 1 | <null> | 11 |
| 3 | <null> | 13 |
+----+--------+----+
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master: 0e6364f
The text was updated successfully, but these errors were encountered: