Fixing grammar, capitalization and spelling in comments
authorZppix <megadev44s.mail@gmail.com>
Thu, 19 Jan 2017 00:54:59 +0000 (00:54 +0000)
committerZppix <Megadev44s.mail@gmail.com>
Thu, 19 Jan 2017 23:03:21 +0000 (23:03 +0000)
Change-Id: Iac80f6668be17c0e35908fc8fdacbae0201f2d7f

includes/db/DatabaseMssql.php

index 7c4bb3b..d567d8b 100644 (file)
@@ -94,7 +94,7 @@ class DatabaseMssql extends Database {
                }
 
                // Decide which auth scenerio to use
-               // if we are using Windows auth, don't add credentials to $connectionInfo
+               // if we are using Windows auth, then don't add credentials to $connectionInfo
                if ( !$wgDBWindowsAuthentication ) {
                        $connectionInfo['UID'] = $user;
                        $connectionInfo['PWD'] = $password;
@@ -151,10 +151,10 @@ class DatabaseMssql extends Database {
                $this->offset = 0;
 
                // several extensions seem to think that all databases support limits
-               // via LIMIT N after the WHERE clause well, MSSQL uses SELECT TOP N,
+               // via LIMIT N after the WHERE clause, but  MSSQL uses SELECT TOP N,
                // so to catch any of those extensions we'll do a quick check for a
                // LIMIT clause and pass $sql through $this->LimitToTopN() which parses
-               // the limit clause and passes the result to $this->limitResult();
+               // the LIMIT clause and passes the result to $this->limitResult();
                if ( preg_match( '/\bLIMIT\s*/i', $sql ) ) {
                        // massage LIMIT -> TopN
                        $sql = $this->LimitToTopN( $sql );
@@ -187,7 +187,7 @@ class DatabaseMssql extends Database {
                        $success = (bool)$stmt;
                }
 
-               // make a copy so that anything we add below does not get reflected in future queries
+               // Make a copy to ensure what we add below does not get reflected in future queries
                $ignoreErrors = $this->mIgnoreErrors;
 
                if ( $this->mIgnoreDupKeyErrors ) {
@@ -520,7 +520,7 @@ class DatabaseMssql extends Database {
        public function indexInfo( $table, $index, $fname = __METHOD__ ) {
                # This does not return the same info as MYSQL would, but that's OK
                # because MediaWiki never uses the returned value except to check for
-               # the existance of indexes.
+               # the existence of indexes.
                $sql = "sp_helpindex '" . $this->tableName( $table ) . "'";
                $res = $this->query( $sql, $fname );
 
@@ -609,7 +609,7 @@ class DatabaseMssql extends Database {
 
                foreach ( $arrToInsert as $a ) {
                        // start out with empty identity column, this is so we can return
-                       // it as a result of the insert logic
+                       // it as a result of the INSERT logic
                        $sqlPre = '';
                        $sqlPost = '';
                        $identityClause = '';