Browse Source
Remove orderBy so the query works correctly on postgres
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/8780/head
Joas Schilling
8 years ago
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with
1 additions and
2 deletions
-
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( |
|
|
|
|