From: Max Semenik Date: Sat, 11 Jun 2011 18:45:56 +0000 (+0000) Subject: sqlite.php: don't fail after --check-syntax on a non-SQLite DB X-Git-Tag: 1.31.0-rc.0~29571 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=4ae61d1424bc3e2e99a59a56b7246861f8e18174;p=lhc%2Fweb%2Fwiklou.git sqlite.php: don't fail after --check-syntax on a non-SQLite DB --- diff --git a/maintenance/sqlite.php b/maintenance/sqlite.php index 4cd225d470..dc8a430eb0 100644 --- a/maintenance/sqlite.php +++ b/maintenance/sqlite.php @@ -44,6 +44,7 @@ class SqliteMaintenance extends Maintenance { // Should work even if we use a non-SQLite database if ( $this->hasOption( 'check-syntax' ) ) { $this->checkSyntax(); + return; } $this->db = wfGetDB( DB_MASTER );