File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -139,9 +139,9 @@ func TestDeleteIgnoreWithFK(t *testing.T) {
139
139
tk .MustExec ("insert into child2 values (1)" )
140
140
require .NotNil (t , tk .ExecToErr ("delete from parent, parent2 using parent inner join parent2 where parent.a = parent2.a" ))
141
141
tk .MustExec ("delete ignore from parent, parent2 using parent inner join parent2 where parent.a = parent2.a" )
142
- tk .MustQuery ("show warnings" ).Check (testkit .Rows (
143
- "Warning 1451 Cannot delete or update a parent row: a foreign key constraint fails (`test`.`child `, CONSTRAINT `fk_1` FOREIGN KEY (`a`) REFERENCES `parent ` (`a`))" ,
144
- "Warning 1451 Cannot delete or update a parent row: a foreign key constraint fails (`test`.`child2 `, CONSTRAINT `fk_1` FOREIGN KEY (`a`) REFERENCES `parent2 ` (`a`))" ))
142
+ tk .MustQuery ("show warnings" ).Sort (). Check (testkit .Rows (
143
+ "Warning 1451 Cannot delete or update a parent row: a foreign key constraint fails (`test`.`child2 `, CONSTRAINT `fk_1` FOREIGN KEY (`a`) REFERENCES `parent2 ` (`a`))" ,
144
+ "Warning 1451 Cannot delete or update a parent row: a foreign key constraint fails (`test`.`child `, CONSTRAINT `fk_1` FOREIGN KEY (`a`) REFERENCES `parent ` (`a`))" ))
145
145
tk .MustQuery ("select * from parent" ).Check (testkit .Rows ("1" ))
146
146
tk .MustQuery ("select * from parent2" ).Check (testkit .Rows ("1" ))
147
147
You can’t perform that action at this time.
0 commit comments