Add no-ops for the (un)lock functions.
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 27 Jun 2008 15:06:22 +0000 (15:06 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 27 Jun 2008 15:06:22 +0000 (15:06 +0000)
includes/db/DatabaseMssql.php
includes/db/DatabaseOracle.php
includes/db/DatabaseSqlite.php

index a6dda25..7334244 100755 (executable)
@@ -997,6 +997,16 @@ class DatabaseMssql extends Database {
                        $this->query("$sql $matches[1],$matches[2])");
                }
        }
+       
+       /** 
+        * No-op lock functions
+        */
+       public function lock( $lockName, $method ) {
+               return true;
+       }
+       public function unlock( $lockName, $method ) {
+               return true;
+       }
 
 }
 
index 8d2a675..d03298e 100644 (file)
@@ -706,5 +706,15 @@ echo "error!\n";
        function getServer() {
                return $this->mServer;
        }
+       
+       /** 
+        * No-op lock functions
+        */
+       public function lock( $lockName, $method ) {
+               return true;
+       }
+       public function unlock( $lockName, $method ) {
+               return true;
+       }
 
 } // end DatabaseOracle class
index 8b4466e..5299c68 100644 (file)
@@ -373,6 +373,16 @@ class DatabaseSqlite extends Database {
                        $this->query("$sql $matches[1],$matches[2])");
                }
        }
+       
+       /** 
+        * No-op lock functions
+        */
+       public function lock( $lockName, $method ) {
+               return true;
+       }
+       public function unlock( $lockName, $method ) {
+               return true;
+       }
 
 }