From: Ian Jackson Subject: [OSSTEST PATCH 03/12] cs-bisection-step: Use db_prepare Date: Mon, 15 Jun 2015 18:13:04 +0100 Message-ID: <1434388394-26099-4-git-send-email-ian.jackson@eu.citrix.com> References: <1434388394-26099-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.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z4Ybu-0002oZ-99 for xen-devel@lists.xenproject.org; Mon, 15 Jun 2015 17:55:50 +0000 In-Reply-To: <1434388394-26099-1-git-send-email-ian.jackson@eu.citrix.com> 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 And do away with one ad-hoc statement dump. Signed-off-by: Ian Jackson --- cs-bisection-step | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/cs-bisection-step b/cs-bisection-step index 67a92b7..bf41f81 100755 --- a/cs-bisection-step +++ b/cs-bisection-step @@ -203,7 +203,7 @@ END AND flight = ? END - my $sth= $dbh_tests->prepare(<prepare(<prepare(<prepare(" + my $stepq= db_prepare(" SELECT * FROM steps WHERE flight = ? AND job = ? AND testid = ? "); - my $jobq= $dbh_tests->prepare(" + my $jobq= db_prepare(" SELECT * FROM flights JOIN jobs USING (flight) WHERE job = ? AND $blessingscond @@ -1059,7 +1059,7 @@ sub preparejob ($$$) { END my (@trevisions) = split / /, $choose->{Rtuple}; - my $treeq= $dbh_tests->prepare(<prepare(<do("DROP TABLE bisection_runvars"); - my $jobsetq= $dbh_tests->prepare(<prepare(<prepare($equalflightsqt); + my $equalflightsq = db_prepare($equalflightsqt); db_retry($popflight,'constructing', $dbh_tests,[qw(flights)], sub { print STDERR "Checking for flail (since $repro_firstflight)...\n"; -- 1.7.10.4