mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
fix: handle calling select on partitioned queries with an array of columns
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
c2e9e078e1
commit
f333fbb8f5
1 changed files with 3 additions and 0 deletions
|
|
@ -76,6 +76,9 @@ class PartitionedQueryBuilder extends ShardedQueryBuilder {
|
|||
|
||||
// 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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue