* r81084 added prefix to index name and as this index gets synced directly it has to use the same prefix

This commit is contained in:
Jure Kajzer 2011-04-08 12:45:19 +00:00
parent 45339d4d54
commit faebf89170

View file

@ -238,6 +238,7 @@ class SearchOracle extends SearchEngine {
* @param $text String
*/
function update($id, $title, $text) {
global $wgDBprefix;
$dbw = wfGetDB(DB_MASTER);
$dbw->replace('searchindex',
array('si_page'),
@ -253,9 +254,9 @@ class SearchOracle extends SearchEngine {
// ALTER SESSION SET CURRENT_SCHEMA = ...
// was used.
$dbw->query( "CALL ctx_ddl.sync_index(" .
$dbw->addQuotes( $dbw->getDBname() . '.si_text_idx' ) . ")" );
$dbw->addQuotes( $dbw->getDBname() . '.'.$wgDBprefix.'si_text_idx' ) . ")" );
$dbw->query( "CALL ctx_ddl.sync_index(" .
$dbw->addQuotes( $dbw->getDBname() . '.si_title_idx' ) . ")" );
$dbw->addQuotes( $dbw->getDBname() . '.'.$wgDBprefix.'si_title_idx' ) . ")" );
}
/**