Skip to content
Snippets Groups Projects
Commit 30fea30f authored by Dan Staines's avatar Dan Staines
Browse files

turn off FK checks to allow InnoDB test dbs

parent 66ef81ee
No related branches found
No related tags found
2 merge requests!14turn off FK checks to allow InnoDB test dbs,!14turn off FK checks to allow InnoDB test dbs
......@@ -463,9 +463,11 @@ sub load_sql {
$sql_com =~ s/;$//;
my @statements = split( /;/, $sql_com );
$db->do("set foreign_key_checks = 0");
foreach my $sql (@statements) {
$db->do($sql);
}
$db->do("set foreign_key_checks = 1");
return;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment