From 83f4ef42f6eacca66708fc24bc63cff11accaaa1 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 19 Jul 2010 21:05:46 +0000 Subject: - Patch #851100 by Damien Tournoud: subquery objects are iterated upon. --- includes/database/query.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'includes/database') 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 -- cgit v1.2.3