From b68250042127a8fcb91e5cfd2496405f40490ee0 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Fri, 26 Jun 2009 13:25:10 +0000 Subject: [PATCH] quick fix for r52382: fix errors in DatabasePostgres, lock() has incompatible signature lockTables(), unlockTables() (lockTables could have some implementation but not unlockTables since PostgreSQL has no command "UNLOCK TABLES") --- includes/db/DatabasePostgres.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/db/DatabasePostgres.php b/includes/db/DatabasePostgres.php index 98ef1ac8ca..1594940c2a 100644 --- a/includes/db/DatabasePostgres.php +++ b/includes/db/DatabasePostgres.php @@ -1389,7 +1389,7 @@ END; /* These are not used yet, but we know we don't want the default version */ - public function lock( $lockName, $method ) { + public function lock( $lockName, $method, $timeout = 5 ) { return true; } public function unlock( $lockName, $method ) { @@ -1403,4 +1403,9 @@ END; /** No-op */ public function setBigSelects( $value = true ) {} + /** Todo: maybe implement this? */ + public function lockTables( $read, $write, $method ) {} + + public function unlockTables( $method ) {} + } // end DatabasePostgres class -- 2.20.1