X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Finstaller%2FMssqlInstaller.php;h=43d3574152ae3fe77915df96119493ba8dd51069;hp=8307d8baa354bd441e7244b42f000545fec9970f;hb=6c9a2923fe1ee3a65cb027be5e781772f2b12fbd;hpb=53034b5e4a4dca2bc0b17962fee9a365362ee62c diff --git a/includes/installer/MssqlInstaller.php b/includes/installer/MssqlInstaller.php index 8307d8baa3..43d3574152 100644 --- a/includes/installer/MssqlInstaller.php +++ b/includes/installer/MssqlInstaller.php @@ -22,6 +22,8 @@ */ use Wikimedia\Rdbms\Database; +use Wikimedia\Rdbms\DBQueryError; +use Wikimedia\Rdbms\DBConnectionError; /** * Class for setting up the MediaWiki database using Microsoft SQL Server. @@ -575,7 +577,7 @@ class MssqlInstaller extends DatabaseInstaller { $grantableNames[] = $dbUser; } catch ( DBQueryError $dqe ) { $this->db->rollback(); - $status->warning( 'config-install-user-create-failed', $dbUser, $dqe->getText() ); + $status->warning( 'config-install-user-create-failed', $dbUser, $dqe->getMessage() ); } } elseif ( !$this->userExists( $dbUser ) ) { try { @@ -586,7 +588,7 @@ class MssqlInstaller extends DatabaseInstaller { $grantableNames[] = $dbUser; } catch ( DBQueryError $dqe ) { $this->db->rollback(); - $status->warning( 'config-install-user-create-failed', $dbUser, $dqe->getText() ); + $status->warning( 'config-install-user-create-failed', $dbUser, $dqe->getMessage() ); } } else { $status->warning( 'config-install-user-alreadyexists', $dbUser ); @@ -618,7 +620,7 @@ class MssqlInstaller extends DatabaseInstaller { $this->db->commit(); } catch ( DBQueryError $dqe ) { $this->db->rollback(); - $status->fatal( 'config-install-user-grant-failed', $dbUser, $dqe->getText() ); + $status->fatal( 'config-install-user-grant-failed', $dbUser, $dqe->getMessage() ); } // Also try to grant SHOWPLAN on the db, but don't fail if we can't // (just makes a couple things in mediawiki run slower since @@ -644,7 +646,7 @@ class MssqlInstaller extends DatabaseInstaller { $this->db->query( "CREATE FULLTEXT INDEX ON $searchindex (si_title, si_text) " . "KEY INDEX si_page ON $schema" ); } catch ( DBQueryError $dqe ) { - $status->fatal( 'config-install-tables-failed', $dqe->getText() ); + $status->fatal( 'config-install-tables-failed', $dqe->getMessage() ); } }