Commit ba633397 authored by Eugene Kulesha's avatar Eugene Kulesha
Browse files

remove the constrain on the ontology name - all ontologies should be handled by the same adaptor

parent f37d6c3d
......@@ -145,13 +145,11 @@ 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