From ba6333975c1447d25524713a0665d212c7c3aac9 Mon Sep 17 00:00:00 2001
From: Eugene Kulesha <ek@ebi.ac.uk>
Date: Fri, 10 Dec 2010 13:27:56 +0000
Subject: [PATCH] remove the constrain on the ontology name - all ontologies
 should be handled by the same adaptor

---
 modules/Bio/EnsEMBL/DBSQL/OntologyTermAdaptor.pm | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/modules/Bio/EnsEMBL/DBSQL/OntologyTermAdaptor.pm b/modules/Bio/EnsEMBL/DBSQL/OntologyTermAdaptor.pm
index 3f1bf0e81d..87189b2768 100644
--- a/modules/Bio/EnsEMBL/DBSQL/OntologyTermAdaptor.pm
+++ b/modules/Bio/EnsEMBL/DBSQL/OntologyTermAdaptor.pm
@@ -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();
 
-- 
GitLab