X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2Fsql.php;h=36e55f3eed52d008e3b9b09de6abd003467121e3;hb=bf61a7743194c6b3add03fa4f0413d5cc21e40b8;hp=b03620dd6a612f88a67bf8d22140f6ed12fc6c5c;hpb=020739639ad42a1c9f3c13d1bdadb4bb3bca2a2c;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/sql.php b/maintenance/sql.php index b03620dd6a..36e55f3eed 100644 --- a/maintenance/sql.php +++ b/maintenance/sql.php @@ -26,6 +26,7 @@ require_once __DIR__ . '/Maintenance.php'; use Wikimedia\Rdbms\ResultWrapper; use Wikimedia\Rdbms\IDatabase; +use Wikimedia\Rdbms\DBQueryError; /** * Maintenance script that sends SQL queries from the specified file to the database. @@ -77,7 +78,7 @@ class MwSql extends Maintenance { $index = DB_MASTER; } - /** @var Database $db DB handle for the appropriate cluster/wiki */ + /** @var IDatabase $db DB handle for the appropriate cluster/wiki */ $db = $lb->getConnection( $index, [], $wiki ); if ( $replicaDB != '' && $db->getLBInfo( 'master' ) !== null ) { $this->error( "The server selected ({$db->getServer()}) is not a replica DB.", 1 );