From 01821275191ff1ae41d7207c853ba7cddad1fba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kusalananda=20K=C3=A4h=C3=A4ri?= <ak4@sanger.ac.uk> Date: Mon, 1 Nov 2010 14:26:57 +0000 Subject: [PATCH] And now don't try to use the host name as the database name... doh... --- modules/Bio/EnsEMBL/Registry.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/Bio/EnsEMBL/Registry.pm b/modules/Bio/EnsEMBL/Registry.pm index 87144e1e7f..3c252467bd 100644 --- a/modules/Bio/EnsEMBL/Registry.pm +++ b/modules/Bio/EnsEMBL/Registry.pm @@ -2598,7 +2598,7 @@ SECONDLOOP: } my $dbh = $dbc->db_handle(); - my $dbhost = $dbc->host(); + my $dbname = $dbc->dbname(); foreach my $type ( 'Gene', 'Transcript', 'Translation', 'Exon' ) { my $statement = @@ -2606,7 +2606,7 @@ SECONDLOOP: . "FROM %s " . "WHERE stable_id = ?", $dbh->quote_identifier( - undef, $dbhost, + undef, $dbname, sprintf( "%s_stable_id", lc($type) ) ) ); my $sth = $dbh->prepare($statement); -- GitLab