* 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)
This commit is contained in:
parent
0548b047b3
commit
97bfb998ee
1 changed files with 1 additions and 1 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue