]> git.mjollnir.org Git - s9y.git/commitdiff
Fix postgresql group by
authorgarvinhicking <garvinhicking>
Fri, 28 Oct 2005 08:03:30 +0000 (08:03 +0000)
committergarvinhicking <garvinhicking>
Fri, 28 Oct 2005 08:03:30 +0000 (08:03 +0000)
include/functions.inc.php

index 9d1d4b6507802a9563f5ee5d235596f91568a8cb..b8db1d142753fc230602950f30469a242d391813 100644 (file)
@@ -187,7 +187,8 @@ function serendipity_fetchUsers($user = '', $group = null, $is_count = false) {
     
     if ($is_count || $group != null) {
         if ($serendipity['dbType'] == 'postgres') {
-            $query_group    = '';
+            // Why does PostgreSQL keep doing this to us? :-)
+            $query_group    = 'GROUP BY a.authorid, a.realname, a.username, a.password, a.mail_comments, a.mail_trackbacks, a.email, a.userlevel, a.right_publish';
             $query_distinct = 'DISTINCT';
         } else {
             $query_group    = 'GROUP BY a.authorid';