From 167a8c891729c0099434dc2b3f07670f5a28d577 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 20 Jan 2011 02:32:43 +0000 Subject: [PATCH] Partial revert r78450: doQuery() and query() are not the same. You can't just swap one for the other without checking what might be using the result --- includes/search/SearchPostgres.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/search/SearchPostgres.php b/includes/search/SearchPostgres.php index 9d6d153988..639d0a22d6 100644 --- a/includes/search/SearchPostgres.php +++ b/includes/search/SearchPostgres.php @@ -148,7 +148,7 @@ class SearchPostgres extends SearchEngine { ## We need a separate query here so gin does not complain about empty searches $SQL = "SELECT to_tsquery($prefix $searchstring)"; - $res = $this->db->query($SQL); + $res = $this->db->doQuery($SQL); if (!$res) { ## TODO: Better output (example to catch: one 'two) die ("Sorry, that was not a valid search string. Please go back and try again"); -- 2.20.1