From 638da2c130cc4b6827d18c2a31777c1272ac9946 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20Kusalananda=20K=C3=A4h=C3=A4ri?=
 <ak4@sanger.ac.uk>
Date: Thu, 24 Jul 2008 17:34:52 +0000
Subject: [PATCH] Fix bug found by unit-tests.

---
 modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm b/modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm
index 8681256f88..8d1857c95b 100644
--- a/modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm
+++ b/modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm
@@ -697,10 +697,10 @@ sub fetch_all {
     $sth->execute();
   } else {
     $sth =
-      $self->prepare(   'SELECT seq_region_id, name, '
-                      . 'length, coord_system_id '
-                      . 'FROM seq_region sr, coord_system cs '
-                      . 'WHERE coord_system_id = ?' );
+      $self->prepare(   'SELECT sr.seq_region_id, sr.name, '
+                      . 'sr.length, sr.coord_system_id '
+                      . 'FROM seq_region sr '
+                      . 'WHERE sr.coord_system_id = ?' );
 
     $sth->bind_param( 1, $orig_cs->dbID, SQL_INTEGER );
     $sth->execute();
-- 
GitLab