diff options
author | Joas Schilling <coding@schilljs.com> | 2022-01-03 17:26:15 +0100 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2022-01-03 21:43:53 -0300 |
commit | e3e73a12ef42b45f773da7e18090938ed3ff1ef3 (patch) | |
tree | 20833237412db00de38dadfe07752e6e6bbb5126 /lib | |
parent | 43fa2d5c8cbbe3dc4976feedd565ddf837af1dfc (diff) | |
download | nextcloud-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.php | 2 |
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"); } |