public function execute() {
$maxLockTime = $this->getOption( 'l', 20 );
- $dbw = wfGetDB( DB_MASTER );
+ $dbw = $this->getDB( DB_MASTER );
if ( $dbw->getType() !== 'mysql' ) {
$this->error( "This change is only needed on MySQL, quitting.\n", true );
}
$sql = "SELECT si_page FROM $searchindex
WHERE ( si_text RLIKE '$regexp' )
OR ( si_title RLIKE '$regexp' )";
+
return $dbw->query( $sql, __METHOD__ );
}
}