From abd78e4d876edac2e176a1f09924655c3b97a749 Mon Sep 17 00:00:00 2001
From: Kieron Taylor <ktaylor@ebi.ac.uk>
Date: Thu, 30 Oct 2014 10:17:56 +0000
Subject: [PATCH] Bugfix for ambiguous xref_id in query causing xref pipeline
 to halt.

---
 misc-scripts/xref_mapping/XrefMapper/TestMappings.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/misc-scripts/xref_mapping/XrefMapper/TestMappings.pm b/misc-scripts/xref_mapping/XrefMapper/TestMappings.pm
index 714b8d10da..f3959f3807 100644
--- a/misc-scripts/xref_mapping/XrefMapper/TestMappings.pm
+++ b/misc-scripts/xref_mapping/XrefMapper/TestMappings.pm
@@ -332,7 +332,7 @@ sub entry_number_check{
   my %old_object_xref_count;
   my %new_object_xref_count;
 
-  my $sth = $self->xref->dbc->prepare('select s.name, count(distinct xref_id, ensembl_id) from xref x, object_xref ox, source s where ox.xref_id = x.xref_id  and x.source_id = s.source_id and ox_status = "DUMP_OUT" and s.name not like "AFFY%"   group by s.name');
+  my $sth = $self->xref->dbc->prepare('select s.name, count(distinct x.xref_id, ensembl_id) from xref x, object_xref ox, source s where ox.xref_id = x.xref_id  and x.source_id = s.source_id and ox_status = "DUMP_OUT" and s.name not like "AFFY%"   group by s.name');
   $sth->execute();
   my ($name, $count);
   $sth->bind_columns(\$name,\$count);
-- 
GitLab