Change realTimestamp to a function only, per Tim's advice.
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Fri, 1 Dec 2006 04:37:48 +0000 (04:37 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Fri, 1 Dec 2006 04:37:48 +0000 (04:37 +0000)
includes/Database.php
includes/DatabasePostgres.php

index 5250221..f35aaaa 100644 (file)
@@ -250,7 +250,6 @@ class Database {
        protected $mCascadingDeletes = false;
        protected $mCleanupTriggers = false;
        protected $mStrictIPs = false;
-       protected $mRealTimestamps = false;
 
 #------------------------------------------------------------------------------
 # Accessors
@@ -367,7 +366,7 @@ class Database {
         * Returns true if this database uses timestamps rather than integers
        */
        function realTimestamps() {
-               return $this->mRealTimestamps;
+               return false;
        }
 
        /**#@+
index d0963af..77f8374 100644 (file)
@@ -28,12 +28,15 @@ class DatabasePostgres extends Database {
                $this->mCascadingDeletes = true;
                $this->mCleanupTriggers = true;
                $this->mStrictIPs = true;
-               $this->mRealTimestamps = true;
                $this->mFlags = $flags;
                $this->open( $server, $user, $password, $dbName);
 
        }
 
+       function realTimestamps() {
+               return true;
+       }
+
        static function newFromParams( $server = false, $user = false, $password = false, $dbName = false,
                $failFunction = false, $flags = 0)
        {