diff options
author | Robin Appelman <robin@icewind.nl> | 2024-12-12 17:38:21 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-12-12 17:38:21 +0100 |
commit | c3930163a278d212254302a6e638b4f287d60f8a (patch) | |
tree | 6275690a4cade76e787c82117efbc5a7d760cae8 /lib | |
parent | cba556d641d07218916e97be3e94d17cad0406fb (diff) | |
download | nextcloud-server-c3930163a278d212254302a6e638b4f287d60f8a.tar.gz nextcloud-server-c3930163a278d212254302a6e638b4f287d60f8a.zip |
fix: handle calling select on partitioned queries with an array of columns
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/DB/QueryBuilder/Partitioned/PartitionedQueryBuilder.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/DB/QueryBuilder/Partitioned/PartitionedQueryBuilder.php b/lib/private/DB/QueryBuilder/Partitioned/PartitionedQueryBuilder.php index a9cc3e74c97..c373e14afd8 100644 --- a/lib/private/DB/QueryBuilder/Partitioned/PartitionedQueryBuilder.php +++ b/lib/private/DB/QueryBuilder/Partitioned/PartitionedQueryBuilder.php @@ -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; |