From ce36d9db5a0e84783e68b925982714bf9c6d036d Mon Sep 17 00:00:00 2001 From: Ian Longden <ianl@sanger.ac.uk> Date: Wed, 17 Feb 2010 13:50:50 +0000 Subject: [PATCH] make sure type is lower case --- misc-scripts/xref_mapping/XrefParser/BaseParser.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc-scripts/xref_mapping/XrefParser/BaseParser.pm b/misc-scripts/xref_mapping/XrefParser/BaseParser.pm index 5fc8ef6a3f..db3c923fe4 100644 --- a/misc-scripts/xref_mapping/XrefParser/BaseParser.pm +++ b/misc-scripts/xref_mapping/XrefParser/BaseParser.pm @@ -1832,6 +1832,8 @@ sub get_taxonomy_from_species_id{ sub get_direct_xref{ my ($self,$stable_id,$type,$link) = @_; + $type = lc($type); + my $sql = "select general_xref_id from ${type}_direct_xref d where ensembl_stable_id = ? and linkage_xref= ?"; my $direct_sth = $dbi->prepare($sql); -- GitLab