]> xenbits.xensource.com Git - people/aperard/osstest.git/commitdiff
sg-report-job-history (nfc): Abolish $fromstuff
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 10 Aug 2020 16:34:55 +0000 (17:34 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Wed, 19 Aug 2020 10:41:18 +0000 (11:41 +0100)
This used to be reused, but that is no longer the case.  Do away with
it, for clarity and simplicity.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
sg-report-job-history

index 48dc2f5767ed855de38772fb2889727146d5e583..2cac123bb684535790a710f656219383c68f5c43 100755 (executable)
@@ -140,13 +140,11 @@ END
     }
     my $offset= $limit-1;
 
-    my $fromstuff= <<END;
+    my $flightsq= db_prepare(<<END);
+        SELECT * 
           FROM jobs JOIN flights USING (flight)
          WHERE ($cond)
       ORDER BY flight DESC
-END
-    my $flightsq= db_prepare(<<END);
-        SELECT * $fromstuff
          LIMIT $limit
 END
     $flightsq->execute(@params);