[Fusionforge-commits] FusionForge branch Branch_5_2 updated. d020b5535dce853aec4e25879705381d58274285

Roland Mas lolando at fusionforge.org
Fri Sep 13 14:13:59 CEST 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, Branch_5_2 has been updated
       via  d020b5535dce853aec4e25879705381d58274285 (commit)
      from  63c9580e2fe06dc4bbd2dfa000f26fc71d077dba (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d020b5535dce853aec4e25879705381d58274285
Author: Roland Mas <lolando at debian.org>
Date:   Fri Sep 13 14:13:49 2013 +0200

    Fixed SQL syntax to work with PostgreSQL 9.3

diff --git a/src/db/FTI.sql b/src/db/FTI.sql
index eb71939..5d95294 100644
--- a/src/db/FTI.sql
+++ b/src/db/FTI.sql
@@ -386,7 +386,7 @@ CREATE OR REPLACE FUNCTION artifact_search(text, int) RETURNS SETOF artifact_res
 	AND u.user_id=a.submitted_by
 	AND a.artifact_id=ai.artifact_id
 	ORDER BY idx.total DESC, ts_rank(ai.vectors, q) DESC'
-LANGUAGE 'SQL';
+LANGUAGE SQL;
 
 CREATE OR REPLACE FUNCTION doc_data_search(text, integer, text, boolean) RETURNS SETOF doc_data_results AS '
 	DECLARE
@@ -514,7 +514,7 @@ CREATE OR REPLACE FUNCTION forum_search(text, integer) RETURNS SETOF forum_resul
 	AND msg_id IN (SELECT fi.msg_id FROM forum_idx fi, forum f, to_tsquery($1) AS q
 	WHERE fi.msg_id = f.msg_id AND f.group_forum_id=$2
 	AND vectors @@ q ORDER BY ts_rank(vectors, q) DESC);'
-LANGUAGE 'SQL';
+LANGUAGE SQL;
 
 CREATE OR REPLACE FUNCTION frs_search(text, integer, text, boolean) RETURNS SETOF frs_results AS '
 	DECLARE
@@ -593,7 +593,7 @@ CREATE OR REPLACE FUNCTION groups_search(text) RETURNS SETOF groups_results AS '
 	WHERE status IN (\'A\', \'H\') AND is_public=\'1\' AND
 	group_id IN (SELECT group_id FROM groups_idx, to_tsquery($1) AS q
 	WHERE vectors @@ q ORDER BY ts_rank(vectors, q) DESC);'
-LANGUAGE 'SQL';
+LANGUAGE SQL;
 
 CREATE OR REPLACE FUNCTION export_groups_search(text) RETURNS SETOF export_groups_results AS '
 	SELECT ts_headline(group_name, q) as group_name,
@@ -607,7 +607,7 @@ CREATE OR REPLACE FUNCTION export_groups_search(text) RETURNS SETOF export_group
 	WHERE status IN (\'A\', \'H\') AND is_public=\'1\' AND short_description <> \'\' AND
 	group_id IN (SELECT group_id FROM groups_idx, to_tsquery($1) AS q
 	WHERE vectors @@ q ORDER BY ts_rank(vectors, q) DESC);'
-LANGUAGE 'SQL';
+LANGUAGE SQL;
 
 CREATE OR REPLACE FUNCTION news_bytes_search(text, integer) RETURNS SETOF news_bytes_results AS '
 	SELECT ts_headline(news_bytes.summary, q) as summary,
@@ -618,7 +618,7 @@ CREATE OR REPLACE FUNCTION news_bytes_search(text, integer) RETURNS SETOF news_b
 	WHERE (news_bytes.group_id=$2 AND news_bytes.is_approved <> ''4'' AND news_bytes.submitted_by=users.user_id) AND
 	news_bytes.id IN (SELECT id FROM news_bytes_idx,
 	to_tsquery($1) AS q WHERE vectors @@ q ORDER BY ts_rank(vectors, q) DESC);'
-LANGUAGE 'SQL';
+LANGUAGE SQL;
 
 CREATE OR REPLACE FUNCTION project_task_search(text, integer, text, boolean) RETURNS SETOF project_task_results AS '
 	DECLARE
@@ -709,7 +709,7 @@ CREATE OR REPLACE FUNCTION skills_data_search(text) RETURNS SETOF skills_data_re
 	AND skills_data.type=skills_data_types.type_id
 	AND skills_data.skills_data_id IN (SELECT skills_data_id FROM skills_data_idx, 
 	to_tsquery($1) AS q WHERE vectors @@ q ORDER BY ts_rank(vectors, q) DESC);'
-LANGUAGE 'SQL';
+LANGUAGE SQL;
 
 CREATE OR REPLACE FUNCTION trackers_search(text, integer, text, boolean) RETURNS SETOF trackers_results AS '
 	DECLARE
@@ -822,4 +822,4 @@ CREATE OR REPLACE FUNCTION users_search(text) RETURNS SETOF users_results AS '
 	FROM users, to_tsquery($1) AS q
 	WHERE status = \'A\' AND user_id IN (SELECT user_id FROM users_idx,
 	to_tsquery($1) AS q WHERE vectors @@ q ORDER BY ts_rank(vectors, q) DESC);'
-LANGUAGE 'SQL';
+LANGUAGE SQL;

-----------------------------------------------------------------------

Summary of changes:
 src/db/FTI.sql |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list