Skip to content

Commit

Permalink
fix: handle calling select on partitioned queries with an array of co…
Browse files Browse the repository at this point in the history
…lumns

Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 authored and backportbot[bot] committed Dec 12, 2024
1 parent c2e9e07 commit f333fbb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ private function newQuery(): IQueryBuilder {

// we need to save selects until we know all the table aliases
public function select(...$selects) {
if (count($selects) === 1 && is_array($selects[0])) {
$selects = $selects[0];
}
$this->selects = [];
$this->addSelect(...$selects);
return $this;
Expand Down

0 comments on commit f333fbb

Please sign in to comment.