}
// 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;
$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 );
$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 ) {
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 );
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 = '';