Author: andy
Description:
I upgraded MW from 1.13.1 to 1.17.0, and the search summaries on my intranet wiki broke, manifested by errors in the Apache log like this:
PHP Warning: pg_fetch_result(): supplied argument is not a valid PostgreSQL result resource in /var/www/html/bogey/mediawiki-1.17.0/includes/search/SearchPostgres.php on line 156
Turns out that when diffing 1.13.1's includes/SearchPostgres.php with 1.17.0's include/search/SearchPostgres.php, we see that line 151 in the 1.17.0 version
$res = $this->db->query($SQL);
was originally, in 1.13.1
$res = $this->db->doQuery($SQL);
When I change this line back to the 1.13.1 version, calling doQuery() instead of query(), everything works once again.
Version: 1.17.x
Severity: normal