https://bugzilla.wikimedia.org/show_bug.cgi?id=31006
Web browser: ---
Bug #: 31006
Summary: warnings thrown during search using Postgresql
Product: MediaWiki
Version: 1.17.0
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Search
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
With Postgresql 8.4.8 as the backend, a search throws up this warning at the
top of the results page
"Warning: pg_fetch_result(): supplied argument is not a valid PostgreSQL result
resource in
/data/services/wiki/mediawiki-1.17.0/includes/search/SearchPostgres.php on line
156"
The page does continue what what seems to be valid results.
Section of code:
function searchQuery( $term,
...
$searchstring = $this->parseQuery( $term );
$SQL = "SELECT to_tsquery($prefix $searchstring)";
$res = $this->db->query($SQL);
$top = pg_fetch_result($res,0,0);
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l