Index: trunk/phase3/includes/search/SearchPostgres.php |
— | — | @@ -146,7 +146,7 @@ |
147 | 147 | |
148 | 148 | ## We need a separate query here so gin does not complain about empty searches |
149 | 149 | $SQL = "SELECT to_tsquery($searchstring)"; |
150 | | - $res = $this->db->doQuery($SQL); |
| 150 | + $res = $this->db->query($SQL); |
151 | 151 | if (!$res) { |
152 | 152 | ## TODO: Better output (example to catch: one 'two) |
153 | 153 | die ("Sorry, that was not a valid search string. Please go back and try again"); |
— | — | @@ -201,7 +201,7 @@ |
202 | 202 | function update( $pageid, $title, $text ) { |
203 | 203 | ## We don't want to index older revisions |
204 | 204 | $SQL = "UPDATE pagecontent SET textvector = NULL WHERE old_id IN ". |
205 | | - "(SELECT rev_text_id FROM revision WHERE rev_page = " . intval( $pageid ) . |
| 205 | + "(SELECT rev_text_id FROM revision WHERE rev_page = " . intval( $pageid ) . |
206 | 206 | " ORDER BY rev_text_id DESC OFFSET 1)"; |
207 | 207 | $this->db->query($SQL); |
208 | 208 | return true; |