X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2Fsql.php;h=36e55f3eed52d008e3b9b09de6abd003467121e3;hp=58472e9bdf968fdfe45d671b8e5524bc062c7f4c;hb=89539f2aa1b158fdcc703ad053e2580cb97a6385;hpb=d657b1706621e2272ad40f4fe566854f82980c03 diff --git a/maintenance/sql.php b/maintenance/sql.php index 58472e9bdf..36e55f3eed 100644 --- a/maintenance/sql.php +++ b/maintenance/sql.php @@ -25,6 +25,8 @@ 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. @@ -76,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 );