Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl-test
Commits
30fea30f
Commit
30fea30f
authored
Jun 16, 2017
by
Dan Staines
Browse files
turn off FK checks to allow InnoDB test dbs
parent
66ef81ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
modules/Bio/EnsEMBL/Test/MultiTestDB.pm
modules/Bio/EnsEMBL/Test/MultiTestDB.pm
+2
-0
No files found.
modules/Bio/EnsEMBL/Test/MultiTestDB.pm
View file @
30fea30f
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment