summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-03-27 14:50:09 +0200
committerJoas Schilling <coding@schilljs.com>2018-03-27 14:50:09 +0200
commitb98c218201b3db952d3ecceed5271000aaf27859 (patch)
treeb33a00fb9453e273c8adc6fb03ec9c505080e063
parent421a00854c74bbbe2577b696125377986b705ec0 (diff)
downloadnextcloud-server-b98c218201b3db952d3ecceed5271000aaf27859.tar.gz
nextcloud-server-b98c218201b3db952d3ecceed5271000aaf27859.zip
Remove orderBy so the query works correctly on postgres
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/private/Group/Database.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/Group/Database.php b/lib/private/Group/Database.php
index b9b2428e01b..abd7f6ee6ee 100644
--- a/lib/private/Group/Database.php
+++ b/lib/private/Group/Database.php
@@ -341,8 +341,7 @@ class Database extends Backend {
$query = $this->dbConn->getQueryBuilder();
$query->selectAlias($query->createFunction('COUNT(*)'), 'num_users')
->from('group_user')
- ->where($query->expr()->eq('gid', $query->createNamedParameter($gid)))
- ->orderBy('uid', 'ASC');
+ ->where($query->expr()->eq('gid', $query->createNamedParameter($gid)));
if ($search !== '') {
$query->andWhere($query->expr()->like('uid', $query->createNamedParameter(