From e2ffd2b6bbad12457ee3655be6374fdef915e38d Mon Sep 17 00:00:00 2001
From: Magali Ruffier <mr6@ebi.ac.uk>
Date: Thu, 23 Aug 2012 10:42:10 +0000
Subject: [PATCH] got the key and value inverted

---
 modules/Bio/EnsEMBL/Pipeline/Production/SnpCount.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/Bio/EnsEMBL/Pipeline/Production/SnpCount.pm b/modules/Bio/EnsEMBL/Pipeline/Production/SnpCount.pm
index 642f26933e..1a9d9cd1e3 100644
--- a/modules/Bio/EnsEMBL/Pipeline/Production/SnpCount.pm
+++ b/modules/Bio/EnsEMBL/Pipeline/Production/SnpCount.pm
@@ -38,7 +38,7 @@ sub get_attrib_codes {
   my $prod_dba   = $self->get_production_DBAdaptor();
   my $prod_helper     = $prod_dba->dbc()->sql_helper();
   my $sql = q{
-    SELECT name, code
+    SELECT code, name
     FROM attrib_type
     WHERE name = 'SNP count' };
   my %attrib_codes = %{ $prod_helper->execute_into_hash(-SQL => $sql) };
-- 
GitLab