From 705a45df2b3d9cc08321113360efdc5ea6eb0a51 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Mon, 25 Jan 2021 15:11:57 -0500 Subject: [PATCH] hydra-evaluator: reformat readJobsets query --- src/hydra-evaluator/hydra-evaluator.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hydra-evaluator/hydra-evaluator.cc b/src/hydra-evaluator/hydra-evaluator.cc index 1cb93496..f3397a7c 100644 --- a/src/hydra-evaluator/hydra-evaluator.cc +++ b/src/hydra-evaluator/hydra-evaluator.cc @@ -68,7 +68,9 @@ struct Evaluator pqxx::work txn(*conn); auto res = txn.exec - ("select project, j.name, lastCheckedTime, triggerTime, checkInterval, j.enabled as jobset_enabled from Jobsets j join Projects p on j.project = p.name " + ("select project, j.name, lastCheckedTime, triggerTime, checkInterval, j.enabled as jobset_enabled " + "from Jobsets j " + "join Projects p on j.project = p.name " "where j.enabled != 0 and p.enabled != 0");