Skip to content

Commit

Permalink
test: add 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 Nov 20, 2023
1 parent 04afc33 commit b6dbc59
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions go/test/endtoend/vtgate/foreignkey/fk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,15 @@ func TestFkQueries(t *testing.T) {
"update fk_t11 set col = id where id in (1, 5)",
},
},
{
name: "Update on child to 0 when parent has -0",
queries: []string{
"insert into fk_t15 (id, col) values (2, '-0')",
"insert /*+ SET_VAR(foreign_key_checks=0) */ into fk_t16 (id, col) values (3, '5'), (4, '-5')",
"update fk_t16 set col = col * (col - (col)) where id = 3",
"update fk_t16 set col = col * (col - (col)) where id = 4",
},
},
}

for _, testcase := range testcases {
Expand Down

0 comments on commit b6dbc59

Please sign in to comment.