PT-1853 Disabled FK checks in MySQL

This commit is contained in:
Carlos
2020-06-30 10:12:27 -03:00
parent c6b4bd747e
commit 2e62d07ba0

View File

@@ -8594,6 +8594,12 @@ sub main {
# ########################################################################
my $set_on_connect = sub {
my ($dbh) = @_;
if ($o->get('check-foreign-keys')) {
my $sql = "SET foreign_key_checks=0";
PTDEBUG && _d($sql);
print $sql, "\n" if $o->get('print');
$dbh->do($sql);
}
return;
};