From: Ian Jackson Date: Thu, 17 Sep 2015 15:40:52 +0000 (+0100) Subject: standalone mode: Fix two SQL `TRUE's X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=693cf3b0a7481119873c1ee9de76feab66cdf872;p=osstest.git standalone mode: Fix two SQL `TRUE's SQL has no portable boolean true literal (really). SQLite3 does not understand `TRUE'. Use `1=1' instead. This means that mg-show-flight-runvars -a will work in standalone mode. Signed-off-by: Ian Jackson Acked-by: Ian Campbell --- v2: New patch --- diff --git a/mg-show-flight-runvars b/mg-show-flight-runvars index 62d5cba..e33a3f0 100755 --- a/mg-show-flight-runvars +++ b/mg-show-flight-runvars @@ -33,7 +33,7 @@ for (;;) { $_ = shift @ARGV; last if m/^\-\-?$/; if (m/^-a$/) { - $synthcond = 'TRUE'; + $synthcond = '(1=1)'; } else { die "$_ ?"; } diff --git a/sg-report-flight b/sg-report-flight index a88379a..ef3fd6b 100755 --- a/sg-report-flight +++ b/sg-report-flight @@ -176,7 +176,7 @@ END } my @flightsq_params; - my $flightsq_jobcond='TRUE'; + my $flightsq_jobcond='(1=1)'; if (defined $job) { push @flightsq_params, $job; $flightsq_jobcond = <