Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
aa15abb8
Commit
aa15abb8
authored
Mar 12, 2014
by
Leo Gordon
Browse files
bugfix: even when given -url DBAdaptor should still be prepared to load registry. Thanks, Magali!
parent
e3516eef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
modules/Bio/EnsEMBL/Hive/DBSQL/DBAdaptor.pm
modules/Bio/EnsEMBL/Hive/DBSQL/DBAdaptor.pm
+5
-3
No files found.
modules/Bio/EnsEMBL/Hive/DBSQL/DBAdaptor.pm
View file @
aa15abb8
...
...
@@ -50,6 +50,11 @@ sub new {
$url
.=
'
;nosqlvc=1
'
if
(
$url
&&
$no_sql_schema_version_check
);
if
(
$reg_conf
or
$reg_alias
)
{
# need to initialize Registry even if $reg_conf is not really given
require
Bio::EnsEMBL::
Registry
;
Bio::EnsEMBL::
Registry
->
load_all
(
$reg_conf
);
# if undefined, default reg_conf will be used
}
my
$self
;
if
(
$url
)
{
...
...
@@ -59,9 +64,6 @@ sub new {
}
elsif
(
$reg_alias
)
{
require
Bio::EnsEMBL::
Registry
;
Bio::EnsEMBL::
Registry
->
load_all
(
$reg_conf
);
# if undefined, default reg_conf will be used
$reg_type
||=
'
hive
';
$self
=
Bio::EnsEMBL::
Registry
->
get_DBAdaptor
(
$reg_alias
,
$reg_type
)
...
...
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