[Fusionforge-commits] r14601 - in branches/Branch_5_1: . src/common/search

Roland Mas lolando at fusionforge.org
Mon Oct 10 21:12:28 CEST 2011


Author: lolando
Date: 2011-10-10 21:12:28 +0200 (Mon, 10 Oct 2011)
New Revision: 14601

Modified:
   branches/Branch_5_1/
   branches/Branch_5_1/src/common/search/ForumSearchQuery.class.php
Log:
Added missing column in GROUP BY clause

Modified: branches/Branch_5_1/src/common/search/ForumSearchQuery.class.php
===================================================================
--- branches/Branch_5_1/src/common/search/ForumSearchQuery.class.php	2011-10-10 16:22:32 UTC (rev 14600)
+++ branches/Branch_5_1/src/common/search/ForumSearchQuery.class.php	2011-10-10 19:12:28 UTC (rev 14601)
@@ -68,7 +68,7 @@
 		if (forge_get_config('use_fti')) {
 			$words = $this->getFTIwords();
 			$qpa = db_construct_qpa ($qpa,
-						 'SELECT x.* FROM (SELECT forum.msg_id, ts_headline(forum.subject, $1::tsquery) AS subject, forum.post_date, users.realname, forum.subject||$2||forum.body as full_string_agg, forum_idx.vectors FROM forum, users, to_tsquery($1) AS q, forum_idx WHERE forum.group_forum_id = $3 AND forum.posted_by = users.user_id AND forum_idx.msg_id = forum.msg_id GROUP BY forum.msg_id, subject, post_date, realname, forum_idx.vectors) AS x WHERE vectors @@ $1::tsquery ',
+						 'SELECT x.* FROM (SELECT forum.msg_id, ts_headline(forum.subject, $1::tsquery) AS subject, forum.post_date, users.realname, forum.subject||$2||forum.body as full_string_agg, forum_idx.vectors FROM forum, users, to_tsquery($1) AS q, forum_idx WHERE forum.group_forum_id = $3 AND forum.posted_by = users.user_id AND forum_idx.msg_id = forum.msg_id GROUP BY forum.msg_id, subject, body, post_date, realname, forum_idx.vectors) AS x WHERE vectors @@ $1::tsquery ',
 						 array ($words,
 							$this->field_separator,
 							$this->forumId)) ;




More information about the Fusionforge-commits mailing list