]> xenbits.xensource.com Git - osstest.git/commitdiff
standalone mode: Fix two SQL `TRUE's
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 17 Sep 2015 15:40:52 +0000 (16:40 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 18 Sep 2015 11:37:30 +0000 (12:37 +0100)
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 <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
v2: New patch

mg-show-flight-runvars
sg-report-flight

index 62d5cba32803d13d5ee967d4d58ac0f02d1f9960..e33a3f06ca5f6803d0bb6afccdfc913b1a99b9a2 100755 (executable)
@@ -33,7 +33,7 @@ for (;;) {
     $_ = shift @ARGV;
     last if m/^\-\-?$/;
     if (m/^-a$/) {
-       $synthcond = 'TRUE';
+       $synthcond = '(1=1)';
     } else {
        die "$_ ?";
     }
index a88379acfd843128a5ec98056950b32055ed0b4f..ef3fd6b7acb4cac3a533812b18416b45cda96cc1 100755 (executable)
@@ -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 = <<END;