Last modified: 2007-06-05 00:28:59 UTC
Special:Contributions (and other pages I'm told) call Database->getLag, which runs a sql command of SHOW PROCESSLIST which is a mysqlism. I overrode it with a stub in DatabasePostgres.php to make it work: Index: includes/DatabasePostgres.php =================================================================== --- includes/DatabasePostgres.php (revision 22629) +++ includes/DatabasePostgres.php (working copy) @@ -1178,7 +1178,12 @@ return true; } + function getLag() { + wfDebug( "Function getLag() not written for DatabasePostgres.php yet"); + return false; + } + } // end DatabasePostgres class ?>
MySQL-specific code should be in DatabaseMysql, not in the parent class. The parent class should contain database-independent code and stubs only.
Stub functions returning 0 added for Oracle and PostgreSQL in r22721. DatabaseMysql doesn't seem to exist any more; there is no clean parent class. :(