From 5c57bedffae5eb2cf0cb2e3d121c466ec79a4779 Mon Sep 17 00:00:00 2001 From: Miguel Pignatelli <mp@ebi.ac.uk> Date: Mon, 16 Dec 2013 16:53:47 +0000 Subject: [PATCH] Final semicolons on test queries are now optional (they were forbidden before) --- modules/Bio/EnsEMBL/Hive/RunnableDB/SqlHealthcheck.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/Bio/EnsEMBL/Hive/RunnableDB/SqlHealthcheck.pm b/modules/Bio/EnsEMBL/Hive/RunnableDB/SqlHealthcheck.pm index 47cccb698..079340eda 100644 --- a/modules/Bio/EnsEMBL/Hive/RunnableDB/SqlHealthcheck.pm +++ b/modules/Bio/EnsEMBL/Hive/RunnableDB/SqlHealthcheck.pm @@ -136,6 +136,11 @@ sub _run_test { my $reference_size = $test->{reference_size}; my $logical_test = $test->{logical_test}; + # Final semicolons are removed if present + if ($query =~ /(;\s*$)/) { + $query =~ s/$1//; + } + print "Test description: $description\n"; print "Checking whether the number of rows $logical_test $reference_size\n"; -- GitLab