summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2022-01-03 11:04:05 -0300
committerVitor Mattos <vitor@php.rio>2022-01-03 12:45:00 -0300
commit7b9fea85b6e893aca874b7a0a07866443822005a (patch)
treec5f96ba7800a8ae60edcb3921fc83d01ebedffd8 /lib/public
parent79b3df00f82f3d0eee397f5389d23c8af1727afd (diff)
downloadnextcloud-server-7b9fea85b6e893aca874b7a0a07866443822005a.tar.gz
nextcloud-server-7b9fea85b6e893aca874b7a0a07866443822005a.zip
Add unit test and orderBy parameter
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/DB/QueryBuilder/IFunctionBuilder.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/DB/QueryBuilder/IFunctionBuilder.php b/lib/public/DB/QueryBuilder/IFunctionBuilder.php
index e04a4cbfdba..466a1c4ddf4 100644
--- a/lib/public/DB/QueryBuilder/IFunctionBuilder.php
+++ b/lib/public/DB/QueryBuilder/IFunctionBuilder.php
@@ -62,10 +62,11 @@ interface IFunctionBuilder {
*
* @param string|ILiteral|IParameter|IQueryFunction $expr The expression to group
* @param string|null $separator The separator
+ * @param string|null $orderBy Optional SQL expression (and direction) to order the grouped rows by.
* @return IQueryFunction
* @since 24.0.0
*/
- public function groupConcat($expr, ?string $separator = ','): IQueryFunction;
+ public function groupConcat($expr, ?string $separator = ',', ?string $orderBy = null): IQueryFunction;
/**
* Takes a substring from the input string