$subquery->
addMetaData('account',
$account);
$subquery->
addField('tp', 'id'
);
$subquery->
condition('age', 5, '>'
);
$subquery->
condition('age', 500, '<'
);
$query->
leftJoin($subquery, 'sq', '[tt].[pid] = [sq].[id]'
);
$query->
join('test_one_blob', 'tb3', '[tt].[pid] = [tb3].[id]'
);
// Construct the query string.
// This is the same sequence that SelectQuery::execute() goes through.
$query->
preExecute();
$query->
getArguments();
$str =
(string) $query;
// Verify that the string only has one copy of condition placeholder 0.
$pos =
strpos($str, 'db_condition_placeholder_0', 0
);
$pos2 =
strpos($str, 'db_condition_placeholder_0',
$pos + 1
);
$this->
assertFalse($pos2, 'Condition placeholder is not repeated.'
);
} /**
* Tests that rowCount() throws exception on SELECT query.
*/