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
ffdf6f03
Commit
ffdf6f03
authored
Jun 22, 2017
by
Alessandro Vullo
Browse files
Disabling foreign key checks is only valid for MySQL.
parent
60b07d33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/Bio/EnsEMBL/Test/MultiTestDB.pm
modules/Bio/EnsEMBL/Test/MultiTestDB.pm
+2
-2
No files found.
modules/Bio/EnsEMBL/Test/MultiTestDB.pm
View file @
ffdf6f03
...
...
@@ -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
;
}
...
...
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