Skip to content

Commit

Permalink
Fix query builder for functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tmekinyan committed Nov 15, 2019
1 parent cc4291d commit 847ab1f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,7 @@ public function generateSelectFieldsProvided(string $bucket, array $columns): st
$fields = [];

foreach ($columns as $column) {
if (strpos($column, "(") === false) {
$fields[] = $bucket . "." . $column;
}
$fields[] = (strpos($column, "(") !== false) ? $column : $bucket . "." . $column;
}

return implode(",", $fields);
Expand Down

0 comments on commit 847ab1f

Please sign in to comment.