From: Chad Horohoe Date: Thu, 20 Jan 2011 02:32:43 +0000 (+0000) Subject: Partial revert r78450: doQuery() and query() are not the same. You can't just swap... X-Git-Tag: 1.31.0-rc.0~32464 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=167a8c891729c0099434dc2b3f07670f5a28d577;p=lhc%2Fweb%2Fwiklou.git 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 --- 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");