From: Chad Horohoe Date: Fri, 27 Jun 2008 15:06:22 +0000 (+0000) Subject: Add no-ops for the (un)lock functions. X-Git-Tag: 1.31.0-rc.0~46858 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/categories/modifier.php?a=commitdiff_plain;h=5bfb68f4e4280de619175a9fa201e1b8e4d8e2c7;p=lhc%2Fweb%2Fwiklou.git Add no-ops for the (un)lock functions. --- diff --git a/includes/db/DatabaseMssql.php b/includes/db/DatabaseMssql.php index a6dda2573f..7334244d89 100755 --- a/includes/db/DatabaseMssql.php +++ b/includes/db/DatabaseMssql.php @@ -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; + } } diff --git a/includes/db/DatabaseOracle.php b/includes/db/DatabaseOracle.php index 8d2a6750dc..d03298ea74 100644 --- a/includes/db/DatabaseOracle.php +++ b/includes/db/DatabaseOracle.php @@ -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 diff --git a/includes/db/DatabaseSqlite.php b/includes/db/DatabaseSqlite.php index 8b4466ecaf..5299c68810 100644 --- a/includes/db/DatabaseSqlite.php +++ b/includes/db/DatabaseSqlite.php @@ -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; + } }