Commit 5d3fd930 by Ivan Pomortsev

Update QueryBuilder.php

Delete some spaces from result string.
parent 01c89ea3
......@@ -750,7 +750,7 @@ class QueryBuilder extends \yii\base\Object
{
$all = $right->params['all'];
list($right, $params) = $this->build($right);
return $left . ' UNION ' . ($all ? 'ALL ' : ' ') . $right . ' ) ';
return $left . ' UNION ' . ($all ? 'ALL ' : ' ') . $right . ' )';
};
foreach ($unions as $i => $union) {
......@@ -762,7 +762,7 @@ class QueryBuilder extends \yii\base\Object
}
}
return array_reduce($unions, $reducer);
return trim(array_reduce($unions, $reducer));
}
/**
......
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