]> git.wh0rd.org Git - tt-rss.git/commitdiff
getLabelCounters: add caption to group by to fix query failing on pgsql 8.4 (refs...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 5 Mar 2013 11:36:25 +0000 (15:36 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 5 Mar 2013 11:36:25 +0000 (15:36 +0400)
include/functions.php

index b381ff1ea56e29ec2c15cc321a2c17112f7cab25..ccf79809520b38f5c6882164fbfd10aa17e46996 100644 (file)
                        FROM ttrss_labels2 LEFT JOIN ttrss_user_labels2 ON
                                (ttrss_labels2.id = label_id)
                                        LEFT JOIN ttrss_user_entries ON (ref_id = article_id AND unread = true)
-                       WHERE ttrss_labels2.owner_uid = $owner_uid GROUP BY ttrss_labels2.id");
+                               WHERE ttrss_labels2.owner_uid = $owner_uid GROUP BY ttrss_labels2.id,
+                                       ttrss_labels2.caption");
 
                while ($line = db_fetch_assoc($result)) {