[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH OSSTEST] mg-show-flight-runvars: avoid "SELECT .. AND TRUE" for sqlite



c5e29f93fb6e "mg-show-flight-runvars: recurse on buildjobs upon
request" broke standalone mode with:
    Error: no such column: TRUE
from sqlite. Do as is done for $syntcond and use (1=1) instead.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
 mg-show-flight-runvars | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mg-show-flight-runvars b/mg-show-flight-runvars
index c847456..d708fed 100755
--- a/mg-show-flight-runvars
+++ b/mg-show-flight-runvars
@@ -53,7 +53,7 @@ our %jobs;
 sub collect ($;$@) {
     my ($flight,$jobcond,@jobcondparams) = @_;
 
-    $jobcond //= "TRUE";
+    $jobcond //= "(1=1)";
 
     $flight =~ m/^\d+/ or $flight = "'$flight'";
     my $qfrom = "FROM runvars WHERE flight=$flight AND $synthcond AND 
$jobcond";
-- 
2.6.1


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.