Commit 969ac5a7 authored by Andy Yates's avatar Andy Yates
Browse files

Bringing in a fix from eg-plugins/common to allow the searching of ontologies other than GO and SO

parent 6cc0846b
......@@ -145,13 +145,12 @@ SELECT term.term_id,
ontology.namespace
FROM ontology,
term
WHERE ontology.name = ?
AND ontology.ontology_id = term.ontology_id
WHERE
ontology.ontology_id = term.ontology_id
AND term.accession = ?);
my $sth = $this->prepare($statement);
$sth->bind_param( 1, $this->{'ontology'}, SQL_VARCHAR );
$sth->bind_param( 2, $accession, SQL_VARCHAR );
$sth->bind_param( 1, $accession, SQL_VARCHAR );
$sth->execute();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment