(bug 19591) Move setBigSelects() to DatabaseMysql
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 9 Jul 2009 00:14:43 +0000 (00:14 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 9 Jul 2009 00:14:43 +0000 (00:14 +0000)
includes/db/Database.php
includes/db/DatabaseMysql.php

index d6789c1..25a340c 100644 (file)
@@ -2235,18 +2235,7 @@ abstract class DatabaseBase {
         * @param mixed $value true for allow, false for deny, or "default" to restore the initial value
         */
        public function setBigSelects( $value = true ) {
-               if ( $value === 'default' ) {
-                       if ( $this->mDefaultBigSelects === null ) {
-                               # Function hasn't been called before so it must already be set to the default
-                               return;
-                       } else {
-                               $value = $this->mDefaultBigSelects;
-                       }
-               } elseif ( $this->mDefaultBigSelects === null ) {
-                       $this->mDefaultBigSelects = (bool)$this->selectField( false, '@@sql_big_selects' );
-               }
-               $encValue = $value ? '1' : '0';
-               $this->query( "SET sql_big_selects=$encValue", __METHOD__ );
+               // no-op
        }
 }
 
index ecd3485..83a7bc5 100644 (file)
@@ -331,6 +331,21 @@ class DatabaseMysql extends DatabaseBase {
        public function unlockTables( $method ) {
                $this->query( "UNLOCK TABLES", $method );
        }
+       
+       public function setBigSelects( $value = true ) {
+               if ( $value === 'default' ) {
+                       if ( $this->mDefaultBigSelects === null ) {
+                               # Function hasn't been called before so it must already be set to the default
+                               return;
+                       } else {
+                               $value = $this->mDefaultBigSelects;
+                       }
+               } elseif ( $this->mDefaultBigSelects === null ) {
+                       $this->mDefaultBigSelects = (bool)$this->selectField( false, '@@sql_big_selects' );
+               }
+               $encValue = $value ? '1' : '0';
+               $this->query( "SET sql_big_selects=$encValue", __METHOD__ );
+       }
 }
 
 /**