Removed version check for mysql 4.1.0 from SqlBahOStuff::createTables
authortonythomas01 <01tonythomas@gmail.com>
Tue, 28 Jan 2014 09:56:11 +0000 (15:26 +0530)
committertonythomas01 <01tonythomas@gmail.com>
Tue, 28 Jan 2014 10:13:32 +0000 (15:43 +0530)
Presently mysql v5.0.2 or later is supported.

Bug: 59125
Change-Id: I9043a6f792c6479a85411addbe9fd448ed5e02a6

includes/objectcache/SqlBagOStuff.php

index e845b55..2c90339 100644 (file)
@@ -677,9 +677,7 @@ class SqlBagOStuff extends BagOStuff {
        public function createTables() {
                for ( $serverIndex = 0; $serverIndex < $this->numServers; $serverIndex++ ) {
                        $db = $this->getDB( $serverIndex );
-                       if ( $db->getType() !== 'mysql'
-                               || version_compare( $db->getServerVersion(), '4.1.0', '<' )
-                       ) {
+                       if ( $db->getType() !== 'mysql' ) {
                                throw new MWException( __METHOD__ . ' is not supported on this DB server' );
                        }