Partial revert r78450: doQuery() and query() are not the same. You can't just swap...
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 20 Jan 2011 02:32:43 +0000 (02:32 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 20 Jan 2011 02:32:43 +0000 (02:32 +0000)
includes/search/SearchPostgres.php

index 9d6d153..639d0a2 100644 (file)
@@ -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");