Skip to content

Commit

Permalink
Fix: unused parenthesis for parameters of FunctionExpression.
Browse files Browse the repository at this point in the history
  • Loading branch information
StewEucen committed Jun 5, 2015
1 parent 75d1173 commit 71be1d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Expression/FunctionExpression.php
Expand Up @@ -127,7 +127,7 @@ public function sql(ValueBinder $generator)
$parts = [];
foreach ($this->_conditions as $condition) {
if ($condition instanceof ExpressionInterface) {
$condition = $condition->sql($generator);
$condition = sprintf('(%s)', $condition->sql($generator));
} elseif (is_array($condition)) {
$p = $generator->placeholder('param');
$generator->bind($p, $condition['value'], $condition['type']);
Expand Down

0 comments on commit 71be1d0

Please sign in to comment.