aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-01-03 17:26:15 +0100
committerVitor Mattos <vitor@php.rio>2022-01-03 21:43:53 -0300
commite3e73a12ef42b45f773da7e18090938ed3ff1ef3 (patch)
tree20833237412db00de38dadfe07752e6e6bbb5126 /lib
parent43fa2d5c8cbbe3dc4976feedd565ddf837af1dfc (diff)
downloadnextcloud-server-e3e73a12ef42b45f773da7e18090938ed3ff1ef3.tar.gz
nextcloud-server-e3e73a12ef42b45f773da7e18090938ed3ff1ef3.zip
Fix oracle LISTAGG
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/DB/QueryBuilder/FunctionBuilder/OCIFunctionBuilder.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/DB/QueryBuilder/FunctionBuilder/OCIFunctionBuilder.php b/lib/private/DB/QueryBuilder/FunctionBuilder/OCIFunctionBuilder.php
index efc42e66112..45a1e1c1ff6 100644
--- a/lib/private/DB/QueryBuilder/FunctionBuilder/OCIFunctionBuilder.php
+++ b/lib/private/DB/QueryBuilder/FunctionBuilder/OCIFunctionBuilder.php
@@ -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");
}