mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Fix oracle LISTAGG
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
43fa2d5c8c
commit
e3e73a12ef
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ class OCIFunctionBuilder extends FunctionBuilder {
|
|||
public function groupConcat($expr, ?string $separator = ','): IQueryFunction {
|
||||
$orderByClause = ' WITHIN GROUP(ORDER BY NULL)';
|
||||
if (is_null($separator)) {
|
||||
return new QueryFunction('LISTAGG(' . $this->helper->quoteColumnName($expr) . $orderByClause . ')');
|
||||
return new QueryFunction('LISTAGG(' . $this->helper->quoteColumnName($expr) . ')' . $orderByClause);
|
||||
}
|
||||
return new QueryFunction('LISTAGG(' . $this->helper->quoteColumnName($expr) . ", '$separator')$orderByClause");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue