summaryrefslogtreecommitdiffstats
path: root/lib/private/DB/QueryBuilder/FunctionBuilder/OCIFunctionBuilder.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/DB/QueryBuilder/FunctionBuilder/OCIFunctionBuilder.php')
-rw-r--r--lib/private/DB/QueryBuilder/FunctionBuilder/OCIFunctionBuilder.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/DB/QueryBuilder/FunctionBuilder/OCIFunctionBuilder.php b/lib/private/DB/QueryBuilder/FunctionBuilder/OCIFunctionBuilder.php
index 5581207a166..af72d85d511 100644
--- a/lib/private/DB/QueryBuilder/FunctionBuilder/OCIFunctionBuilder.php
+++ b/lib/private/DB/QueryBuilder/FunctionBuilder/OCIFunctionBuilder.php
@@ -72,4 +72,11 @@ class OCIFunctionBuilder extends FunctionBuilder {
return parent::least($x, $y);
}
+
+ public function groupConcat($expr, ?string $separator = ','): IQueryFunction {
+ if (is_null($separator)) {
+ return new QueryFunction('LISTAGG(' . $this->helper->quoteColumnName($expr));
+ }
+ return new QueryFunction('LISTAGG(' . $this->helper->quoteColumnName($expr) . ", '$separator')");
+ }
}