Remove variables when we can simply override accessors instead.
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Wed, 21 Mar 2007 18:19:35 +0000 (18:19 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Wed, 21 Mar 2007 18:19:35 +0000 (18:19 +0000)
includes/Database.php
includes/DatabaseOracle.php
includes/DatabasePostgres.php

index 589cc14..4bfc84b 100644 (file)
@@ -295,9 +295,6 @@ class Database {
        protected $mTrxLevel = 0;
        protected $mErrorCount = 0;
        protected $mLBInfo = array();
-       protected $mCascadingDeletes = false;
-       protected $mCleanupTriggers = false;
-       protected $mStrictIPs = false;
 
 #------------------------------------------------------------------------------
 # Accessors
@@ -392,14 +389,14 @@ class Database {
         * Returns true if this database supports (and uses) cascading deletes
         */
        function cascadingDeletes() {
-               return $this->mCascadingDeletes;
+               return false;
        }
 
        /**
         * Returns true if this database supports (and uses) triggers (e.g. on the page table)
         */
        function cleanupTriggers() {
-               return $this->mCleanupTriggers;
+               return false;
        }
 
        /**
@@ -407,7 +404,7 @@ class Database {
         * Specifically, it uses a NULL value instead of an empty string.
         */
        function strictIPs() {
-               return $this->mStrictIPs;
+               return false;
        }
 
        /**
index 513cb4e..7560039 100644 (file)
@@ -104,22 +104,26 @@ class DatabaseOracle extends Database {
                }
                $this->mOut =& $wgOut;
                $this->mFailFunction = $failFunction;
-               $this->mCascadingDeletes = true;
-               $this->mCleanupTriggers = true;
-               $this->mStrictIPs = true;
                $this->mFlags = $flags;
                $this->open( $server, $user, $password, $dbName);
 
        }
 
+       function cascadingDeletes() {
+               return true;
+       }
+       function cleanupTriggers() {
+               return true;
+       }
+       function strictIPs() {
+               return true;
+       }
        function realTimestamps() {
                return true;
        }
-
        function implicitGroupby() {
                return false;
        }
-
        function searchableIPs() {
                return true;
        }
index 36a0b64..93051b6 100644 (file)
@@ -74,22 +74,26 @@ class DatabasePostgres extends Database {
                }
                $this->mOut =& $wgOut;
                $this->mFailFunction = $failFunction;
-               $this->mCascadingDeletes = true;
-               $this->mCleanupTriggers = true;
-               $this->mStrictIPs = true;
                $this->mFlags = $flags;
                $this->open( $server, $user, $password, $dbName);
 
        }
 
+       function cascadingDeletes() {
+               return true;
+       }
+       function cleanupTriggers() {
+               return true;
+       }
+       function strictIPs() {
+               return true;
+       }
        function realTimestamps() {
                return true;
        }
-
        function implicitGroupby() {
                return false;
        }
-
        function searchableIPs() {
                return true;
        }