Skip to content

Commit c7df5a9

Browse files
Test-DbaDbRecoveryModel: Fix for instances with case sensitive collation (#9425)
1 parent c2780ec commit c7df5a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

public/Test-DbaDbRecoveryModel.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ function Test-DbaDbRecoveryModel {
9898
WHEN d.recovery_model = 1 AND drs.last_log_backup_lsn IS NOT NULL THEN 1
9999
ELSE 0
100100
END AS IsReallyInFullRecoveryModel
101-
FROM sys.databases AS D
101+
FROM sys.databases AS d
102102
INNER JOIN sys.database_recovery_status AS drs
103-
ON D.database_id = drs.database_id
103+
ON d.database_id = drs.database_id
104104
WHERE d.recovery_model = $recoveryCode"
105105

106106
if ($Database) {
@@ -152,4 +152,4 @@ function Test-DbaDbRecoveryModel {
152152
}
153153
}
154154
}
155-
}
155+
}

0 commit comments

Comments
 (0)