From: Ævar Arnfjörð Bjarmason Date: Tue, 24 May 2005 14:56:07 +0000 (+0000) Subject: * Fixed a bug where moving a page would cause the following SQL error when X-Git-Tag: 1.5.0alpha2~97 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=97bfb998ee07677a208b0578a7cc67d6e2936849;p=lhc%2Fweb%2Fwiklou.git * Fixed a bug where moving a page would cause the following SQL error when updating the searchindex: UPDATE `Array` SET si_title='page 1' WHERE si_page='2910' from within function "SearchMySQL4::updateTitle". MySQL returned error "1146: Table 'HEAD.Array' doesn't exist (localhost)". The new query causes the following to be executed: UPDATE `searchindex` SET si_title='page 1' WHERE si_page='2909' (somebody more familiar with the the whole searchindexing code please review the while move process) --- diff --git a/includes/SearchMySQL.php b/includes/SearchMySQL.php index 84571a596b..29f3f1cf23 100644 --- a/includes/SearchMySQL.php +++ b/includes/SearchMySQL.php @@ -172,7 +172,7 @@ class SearchMySQL extends SearchEngine { function updateTitle( $id, $title ) { $dbw =& wfGetDB( DB_MASTER ); - $dbw->update( array( 'searchindex' ), + $dbw->update( 'searchindex', array( 'si_title' => $title ), array( 'si_page' => $id ), 'SearchMySQL4::updateTitle',