From: Jure Kajzer Date: Fri, 8 Apr 2011 12:45:19 +0000 (+0000) Subject: * r81084 added prefix to index name and as this index gets synced directly it has... X-Git-Tag: 1.31.0-rc.0~30969 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=faebf89170d9dbc41e97db5c7ba326884a75bf63;p=lhc%2Fweb%2Fwiklou.git * r81084 added prefix to index name and as this index gets synced directly it has to use the same prefix --- diff --git a/includes/search/SearchOracle.php b/includes/search/SearchOracle.php index 4035fc3d54..7209d6d11c 100644 --- a/includes/search/SearchOracle.php +++ b/includes/search/SearchOracle.php @@ -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' ) . ")" ); } /**