From af321df3c0e8adbea89542b5dd189e5f7e9ebcf9 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 24 Jul 2013 11:32:03 -0700 Subject: [PATCH] Fix a bad query in LeaseQuery Summary: Fixes T3610. This got un-scoped at some point, and is only used in Drydock so it escaped notice. Test Plan: Ran `bin/drydock lease --type host` without hitting an exception about incorrect query construction. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T3610 Differential Revision: https://secure.phabricator.com/D6552 --- .../daemon/workers/query/PhabricatorWorkerLeaseQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/infrastructure/daemon/workers/query/PhabricatorWorkerLeaseQuery.php b/src/infrastructure/daemon/workers/query/PhabricatorWorkerLeaseQuery.php index e54fb72d3e..e7b07ba844 100644 --- a/src/infrastructure/daemon/workers/query/PhabricatorWorkerLeaseQuery.php +++ b/src/infrastructure/daemon/workers/query/PhabricatorWorkerLeaseQuery.php @@ -139,7 +139,7 @@ final class PhabricatorWorkerLeaseQuery extends PhabricatorQuery { if ($this->ids) { $where[] = qsprintf( $conn_w, - 'task.id IN (%Ld)', + 'id IN (%Ld)', $this->ids); }