Commit 83f4ef42 authored by Dries's avatar Dries
Browse files

- Patch #851100 by Damien Tournoud: subquery objects are iterated upon.

parent a5f23317
......@@ -1321,6 +1321,9 @@ public function compile(DatabaseConnection $connection, QueryPlaceholderInterfac
$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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment