From: Zppix Date: Thu, 19 Jan 2017 00:54:59 +0000 (+0000) Subject: Fixing grammar, capitalization and spelling in comments X-Git-Tag: 1.31.0-rc.0~4224^2 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=df2e86d727903de0bce99f5694e6157b4a1ba45e;p=lhc%2Fweb%2Fwiklou.git Fixing grammar, capitalization and spelling in comments Change-Id: Iac80f6668be17c0e35908fc8fdacbae0201f2d7f --- diff --git a/includes/db/DatabaseMssql.php b/includes/db/DatabaseMssql.php index 7c4bb3b721..d567d8b740 100644 --- a/includes/db/DatabaseMssql.php +++ b/includes/db/DatabaseMssql.php @@ -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 = '';