Skip to content

Commit 0c61aae

Browse files
nickvergessenvitormattos
authored andcommitted
Fix oracle LISTAGG
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 1187be5 commit 0c61aae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/DB/QueryBuilder/FunctionBuilder/OCIFunctionBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function least($x, $y): IQueryFunction {
7676
public function groupConcat($expr, ?string $separator = ','): IQueryFunction {
7777
$orderByClause = ' WITHIN GROUP(ORDER BY NULL)';
7878
if (is_null($separator)) {
79-
return new QueryFunction('LISTAGG(' . $this->helper->quoteColumnName($expr) . $orderByClause . ')');
79+
return new QueryFunction('LISTAGG(' . $this->helper->quoteColumnName($expr) . ')' . $orderByClause);
8080
}
8181
return new QueryFunction('LISTAGG(' . $this->helper->quoteColumnName($expr) . ", '$separator')$orderByClause");
8282
}

0 commit comments

Comments
 (0)