r75821 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75820‎ | r75821 | r75822 >
Date:19:51, 1 November 2010
Author:maxsem
Status:ok
Tags:
Comment:
Follow-up r68127: honor table prefix, perverted though it may seem on SQLite.
Modified paths:
  • /trunk/phase3/includes/db/DatabaseSqlite.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/db/DatabaseSqlite.php
@@ -118,7 +118,8 @@
119119 function checkForEnabledSearch() {
120120 if ( self::$fulltextEnabled === null ) {
121121 self::$fulltextEnabled = false;
122 - $res = $this->query( "SELECT sql FROM sqlite_master WHERE tbl_name = 'searchindex'", __METHOD__ );
 122+ $table = $this->tableName( 'searchindex' );
 123+ $res = $this->query( "SELECT sql FROM sqlite_master WHERE tbl_name = '$table'", __METHOD__ );
123124 if ( $res ) {
124125 $row = $res->fetchRow();
125126 self::$fulltextEnabled = stristr($row['sql'], 'fts' ) !== false;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r68127* Create new DatabaseSqlite::checkForEnabledSearch() and use it from SearchSq...mah18:26, 16 June 2010

Status & tagging log