From 09a6c22eba23197cb1d1c88c49c512191568e27b Mon Sep 17 00:00:00 2001
From: Ian Longden <ianl@sanger.ac.uk>
Date: Tue, 24 May 2011 08:47:32 +0000
Subject: [PATCH] set info_text to null instead of empty string

---
 misc-scripts/xref_mapping/XrefMapper/DisplayXrefs.pm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/misc-scripts/xref_mapping/XrefMapper/DisplayXrefs.pm b/misc-scripts/xref_mapping/XrefMapper/DisplayXrefs.pm
index e1d4fe4582..4524e0e904 100644
--- a/misc-scripts/xref_mapping/XrefMapper/DisplayXrefs.pm
+++ b/misc-scripts/xref_mapping/XrefMapper/DisplayXrefs.pm
@@ -172,6 +172,10 @@ sub genes_and_transcripts_attributes_set{
 
   #End of Special
 
+  $sth_lrg = $self->core->dbc->prepare("UPDATE xref SET info_text=null WHERE info_text=''");
+  $sth_lrg->execute;
+
+
   if(!defined($noxref_database)){
     my $sth_stat = $self->xref->dbc->prepare("insert into process_status (status, date) values('gene_description_done',now())");
     $sth_stat->execute();
-- 
GitLab