From d2a29fcc978611c6c50d579b49912a53533ffbc6 Mon Sep 17 00:00:00 2001 From: Toni Hermoso Pulido Date: Fri, 27 Sep 2019 15:21:00 +0200 Subject: [PATCH] avoid empty id entries --- scripts/lib/FunctionalAnnotation/uploadData.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/lib/FunctionalAnnotation/uploadData.pm b/scripts/lib/FunctionalAnnotation/uploadData.pm index d3fd1ef..e7971ce 100644 --- a/scripts/lib/FunctionalAnnotation/uploadData.pm +++ b/scripts/lib/FunctionalAnnotation/uploadData.pm @@ -349,7 +349,9 @@ close FH; sub insertProtein { my($c_prot_id, $c_contig, $start, $end, $c_strand, $g_id, $idList,$dbh, $engine,$loglevel) =@_; - + + if ( ! $c_prot_id || $c_prot_id eq '' ) { return; } + if(!defined $engine){$engine = 'mysql';} my $numberElements = scalar keys %{$idList}||'';