Skip to content

Commit

Permalink
test: add a failing test
Browse files Browse the repository at this point in the history
Signed-off-by: Manan Gupta <[email protected]>
  • Loading branch information
GuptaManan100 committed Apr 23, 2024
1 parent c1bddd7 commit fc87645
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions go/test/endtoend/vtgate/foreignkey/fk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,14 @@ func TestFkQueries(t *testing.T) {
"delete fk_t11 from fk_t11 join fk_t12 using (id) where fk_t11.id = 4",
},
},
{
name: "Foreign key join rows affected",
queries: []string{
"insert /*+ SET_VAR(foreign_key_checks=0) */ into fk_t11 (id, col) values (4, '1'), (5, '3'), (7, '22'), (8, '5'), (9, NULL), (10, '3')",
"insert /*+ SET_VAR(foreign_key_checks=0) */ into fk_t12 (id, col) values (4, '1'), (5, '3'), (7, '22'), (8, '5'), (9, NULL), (10, '3')",
"delete fk_t11, fk_t12 from fk_t11 join fk_t12 using (id) where fk_t11.id = 5",
},
},
}

for _, tt := range testcases {
Expand Down

0 comments on commit fc87645

Please sign in to comment.