summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/database/query.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/database/query.inc b/includes/database/query.inc
index 55c569e00..75f292cfe 100644
--- a/includes/database/query.inc
+++ b/includes/database/query.inc
@@ -1321,6 +1321,9 @@ class DatabaseCondition implements QueryConditionInterface, Countable {
$condition['value']->compile($connection, $queryPlaceholder);
$placeholders[] = (string) $condition['value'];
$arguments += $condition['value']->arguments();
+ // Subqueries are the actual value of the operator, we don't
+ // need to add another below.
+ $operator['use_value'] = FALSE;
}
// We assume that if there is a delimiter, then the value is an
// array. If not, it is a scalar. For simplicity, we first convert