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-hive
Commits
aa224e93
Commit
aa224e93
authored
Oct 01, 2012
by
Leo Gordon
Browse files
bugfix: fetch_by_dbID should work now (thanks to ChuangKee and Miguel)
parent
469f582e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
modules/Bio/EnsEMBL/Hive/DBSQL/BaseAdaptor.pm
modules/Bio/EnsEMBL/Hive/DBSQL/BaseAdaptor.pm
+1
-1
modules/Bio/EnsEMBL/Hive/Worker.pm
modules/Bio/EnsEMBL/Hive/Worker.pm
+2
-1
No files found.
modules/Bio/EnsEMBL/Hive/DBSQL/BaseAdaptor.pm
View file @
aa224e93
...
...
@@ -215,7 +215,7 @@ sub primary_key_constraint {
sub
fetch_by_dbID
{
my
$self
=
shift
@_
;
# the rest in @_ should be primary_key column values
return
$self
->
fetch_all
(
$self
->
primary_key_constraint
(
@
_
),
1
);
return
$self
->
fetch_all
(
$self
->
primary_key_constraint
(
\
@
_
),
1
);
}
...
...
modules/Bio/EnsEMBL/Hive/Worker.pm
View file @
aa224e93
...
...
@@ -256,7 +256,8 @@ sub analysis {
$self
->
{'
_analysis
'}
=
shift
@_
;
}
elsif
(
!
$self
->
{'
_analysis
'}
)
{
if
(
my
$analysis_id
=
$self
->
analysis_id
())
{
$self
->
{'
_analysis
'}
=
$self
->
adaptor
->
db
->
get_AnalysisAdaptor
->
fetch_by_dbID
(
$analysis_id
);
$self
->
{'
_analysis
'}
=
$self
->
adaptor
->
db
->
get_AnalysisAdaptor
->
fetch_by_dbID
(
$analysis_id
)
or
die
"
Could not fetch analysis for analysis_id=
$analysis_id
";
}
else
{
die
"
analysis_id not defined, could not fetch Hive::Analysis object
";
}
...
...
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