Skip to contentSkip to conversation

Executive: Drop redundant AND clause

PATCH Ian Jackson 1 participant 1 message Jul 22, 2020

lore
Share & tools
lore
#0 lore raw

In "Executive: Use index for report__find_test" we changed an EXISTS subquery into a JOIN.

Now, the condition r.flight=f.flight is redundant because this is the join column (from USING).

No functional change.

---
 Osstest/Executive.pm | 1 -
 1 file changed, 1 deletion(-)
Osstest/Executive.pm +0 -1
index 66c93ab9..33de3708 100644
@@ -433,7 +433,6 @@ END
 		   WHERE name=?
                      AND name LIKE 'revision_%'
 		     AND val=?
-		     AND r.flight=f.flight
                      AND ${\ main_revision_job_cond('r.job') }
 END
             push @params, "revision_$tree", $revision;
Signature · 1 line
2.20.1