Commit 0e2b2fcb by Jacob Morrison

Fix for logic Query::queryScalar uses to check for SELECT DISTINCT

parent a3e128bb
......@@ -356,7 +356,7 @@ class Query extends Component implements QueryInterface
$this->limit = $limit;
$this->offset = $offset;
if (empty($this->groupBy) && $this->distinct !== true) {
if (empty($this->groupBy) && !$this->distinct) {
return $command->queryScalar();
} else {
return (new Query)->select([$selectExpression])
......
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