From 88a8cef1874a9c11d7bdb6d8eafa463336436bec Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 4 Nov 2010 20:38:52 +0000 Subject: [PATCH] BUGFIX PostgreSQLDatabase::searchEngine() should use "Relevance" instead of the same name without the quotes (this was changed in SearchForm r113295) --- code/PostgreSQLDatabase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/PostgreSQLDatabase.php b/code/PostgreSQLDatabase.php index ad0a3ee..963356e 100644 --- a/code/PostgreSQLDatabase.php +++ b/code/PostgreSQLDatabase.php @@ -1434,7 +1434,7 @@ class PostgreSQLDatabase extends SS_Database { $query->select=$select[$row['table_name']]; $query->from['tsearch']=", to_tsquery('english', '$keywords') AS q"; - $query->select[]="ts_rank(\"{$row['column_name']}\", q) AS Relevance"; + $query->select[]="ts_rank(\"{$row['column_name']}\", q) AS \"Relevance\""; $query->orderby=null;