From 0b6df0cd73efea19304d667badf0a4047173b43b Mon Sep 17 00:00:00 2001 From: Zachary Wasserman Date: Thu, 10 Nov 2016 17:01:39 -0800 Subject: [PATCH] Fix changed ID column name in DistributedQueriesForHost query (#473) --- server/datastore/gorm_hosts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/datastore/gorm_hosts.go b/server/datastore/gorm_hosts.go index 7c269808e5..223ea893a2 100644 --- a/server/datastore/gorm_hosts.go +++ b/server/datastore/gorm_hosts.go @@ -168,7 +168,7 @@ LEFT JOIN label_query_executions lqe LEFT JOIN hosts h ON ((dqct.type = ? AND lqe.host_id = h.id) OR (dqct.type = ? AND dqct.target_id = h.id)) LEFT JOIN distributed_query_executions dqe - ON (h.id = dqe.host_id AND dqc.id = dqe.distributed_query_id) + ON (h.id = dqe.host_id AND dqc.id = dqe.distributed_query_campaign_id) JOIN queries q ON (dqc.query_id = q.id) WHERE dqe.status IS NULL AND dqc.status = ? AND h.id = ?;