From 97bfb998ee07677a208b0578a7cc67d6e2936849 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Tue, 24 May 2005 14:56:07 +0000 Subject: [PATCH] * 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) --- includes/SearchMySQL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', -- 2.20.1