Only create 'searchindex' table for parser tests if DB is MySQL. Per bug 585.
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Tue, 18 Dec 2007 15:14:23 +0000 (15:14 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Tue, 18 Dec 2007 15:14:23 +0000 (15:14 +0000)
RELEASE-NOTES
maintenance/parserTests.inc

index 77b54ea..f578a9e 100644 (file)
@@ -248,6 +248,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   user-customized ones (like Common.css, Common.js)
 * (bug 12283) Special:Newpages forgets parameters
 * (bug 12031) All namespaces doesn't work in Special:Newpages
+* (bug 585) Only create searchindex replica table for parser tests if db is MySQL
 
 == Parser changes in 1.12 ==
 
index 10e4689..bfb226b 100644 (file)
@@ -425,14 +425,18 @@ class ParserTest {
         * Some of these probably aren't necessary.
         */
        private function listTables() {
+               global $wgDBtype;
                $tables = array('user', 'page', 'page_restrictions',
                        'protected_titles', 'revision', 'text', 'pagelinks', 'imagelinks',
                        'categorylinks', 'templatelinks', 'externallinks', 'langlinks',
                        'site_stats', 'hitcounter',     'ipblocks', 'image', 'oldimage',
-                       'recentchanges', 'watchlist', 'math', 'searchindex', 'interwiki',
+                       'recentchanges', 'watchlist', 'math', 'interwiki',
                        'querycache', 'objectcache', 'job', 'redirect', 'querycachetwo',
                        'archive', 'user_groups'
                );
+
+               if ($wgDBtype === 'mysql') 
+                       array_push( $tables, 'searchindex' );
                
                // Allow extensions to add to the list of tables to duplicate;
                // may be necessary if they hook into page save or other code