Commit 54ff3120 authored by Leo Gordon's avatar Leo Gordon
Browse files

bugfix: CoreDBConnection pretends to be a Bio::EnsEMBL::DBSQL::DBConnection when possible

parent 1785e9ed
......@@ -75,6 +75,16 @@ use Bio::EnsEMBL::Hive::DBSQL::StatementHandle;
use Bio::EnsEMBL::Hive::Utils ('throw');
use vars qw(@ISA); # If Ensembl Core code is available, inherit from its' DBConnection for compatibility.
BEGIN {
if (eval { require Bio::EnsEMBL::DBSQL::DBConnection; 1 }) {
@ISA = ('Bio::EnsEMBL::DBSQL::DBConnection');
} else {
@ISA = ();
}
}
=head2 new
Arg [DBNAME] : (optional) string
......
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