From 4b20c869b58d248138ec9a6ff9512ede3effbb7d Mon Sep 17 00:00:00 2001
From: Magali Ruffier <mr6@ebi.ac.uk>
Date: Mon, 13 Aug 2012 14:22:56 +0000
Subject: [PATCH] value could be a string, not always a numeric

---
 modules/Bio/EnsEMBL/DBSQL/AttributeAdaptor.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/Bio/EnsEMBL/DBSQL/AttributeAdaptor.pm b/modules/Bio/EnsEMBL/DBSQL/AttributeAdaptor.pm
index c681c55265..6240ab9ee6 100644
--- a/modules/Bio/EnsEMBL/DBSQL/AttributeAdaptor.pm
+++ b/modules/Bio/EnsEMBL/DBSQL/AttributeAdaptor.pm
@@ -165,7 +165,7 @@ sub store_on_ {
             "argument expected.");
     }
 
-    next if ($attrib->value == 0);
+    next if ($attrib->value eq '0');
 
     my $atid = $self->_store_type( $attrib );
     if ((defined $attrib->code) and ($attrib->code eq 'circular_seq')) {
-- 
GitLab