[Fusionforge-commits] r13818 - branches/Branch_5_1/src/common/search

Roland Mas lolando at fusionforge.org
Thu Jul 21 12:01:37 CEST 2011


Author: lolando
Date: 2011-07-21 12:01:37 +0200 (Thu, 21 Jul 2011)
New Revision: 13818

Modified:
   branches/Branch_5_1/src/common/search/SearchQuery.class.php
Log:
Fixed SQL syntax for setting PostgreSQL option

Modified: branches/Branch_5_1/src/common/search/SearchQuery.class.php
===================================================================
--- branches/Branch_5_1/src/common/search/SearchQuery.class.php	2011-07-20 14:38:58 UTC (rev 13817)
+++ branches/Branch_5_1/src/common/search/SearchQuery.class.php	2011-07-21 10:01:37 UTC (rev 13818)
@@ -177,8 +177,9 @@
 		}
 
 		if (forge_get_config('use_fti')) {
-			db_query_params ('select set_curcfg($1)',
-					 array ('default'));
+			db_query_params ('SELECT set_config($1, $2, false)', 
+					 array('default_text_search_config',
+					       'simple'));
 		}
 		$this->result = db_query_qpa (
 			$qpa,




More information about the Fusionforge-commits mailing list