Commit ffdf6f03 authored by Alessandro Vullo's avatar Alessandro Vullo
Browse files

Disabling foreign key checks is only valid for MySQL.

parent 60b07d33
......@@ -463,11 +463,11 @@ sub load_sql {
$sql_com =~ s/;$//;
my @statements = split( /;/, $sql_com );
$db->do("set foreign_key_checks = 0");
$db->do("set foreign_key_checks = 0") if $self->db_conf->{driver} =~ /mysql/;
foreach my $sql (@statements) {
$db->do($sql);
}
$db->do("set foreign_key_checks = 1");
$db->do("set foreign_key_checks = 1") if $self->db_conf->{driver} =~ /mysql/;
return;
}
......
Markdown is supported
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