From 1507aefa0abdce1c94e9d95aac7ab0fe37d26d17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kusalananda=20K=C3=A4h=C3=A4ri?= <ak4@sanger.ac.uk> Date: Tue, 29 Jul 2008 15:24:59 +0000 Subject: [PATCH] Use the coord_system table from the database connected as the 'dnadb' database in new(). --- modules/Bio/EnsEMBL/DBSQL/MetaCoordContainer.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/Bio/EnsEMBL/DBSQL/MetaCoordContainer.pm b/modules/Bio/EnsEMBL/DBSQL/MetaCoordContainer.pm index d7d2fad9dd..86f74c5bb5 100644 --- a/modules/Bio/EnsEMBL/DBSQL/MetaCoordContainer.pm +++ b/modules/Bio/EnsEMBL/DBSQL/MetaCoordContainer.pm @@ -25,10 +25,12 @@ sub new { # my $sth = $self->prepare( + sprintf( 'SELECT mc.table_name, mc.coord_system_id, mc.max_length ' - . 'FROM meta_coord mc, coord_system cs ' + . 'FROM meta_coord mc, %s.coord_system cs ' . 'WHERE mc.coord_system_id = cs.coord_system_id ' - . 'AND cs.species_id = ?' ); + . 'AND cs.species_id = ?', + $self->db()->dnadb()->dbc()->dbname() ) ); $sth->bind_param( 1, $self->species_id(), SQL_INTEGER ); $sth->execute(); -- GitLab