From: Ian Jackson Subject: [OSSTEST PATCH 1/2] sg-report-job-history: Separate out $cond in queries Date: Mon, 9 Feb 2015 18:07:12 +0000 Message-ID: <1423505233-9957-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YKsjz-0003ge-FL for xen-devel@lists.xenproject.org; Mon, 09 Feb 2015 18:07:23 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org We are going to want to reuse this, so separate out the computation of $cond and @params. Signed-off-by: Ian Jackson --- sg-report-job-history | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/sg-report-job-history b/sg-report-job-history index ee021b6..479e347 100755 --- a/sg-report-job-history +++ b/sg-report-job-history @@ -155,24 +155,21 @@ sub processjobbranch ($$) { my @test_rows; my $blessingscond= '('.join(' OR ', map { "blessing=?" } @blessings).')'; - my $stmt= <prepare(<prepare($stmt); $flightsq->execute(@params); while (my $f= $flightsq->fetchrow_hashref()) { -- 1.7.10.4