You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/trackers/features/commit-bug-review-TRACKER.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ Find real bugs (logic errors, null refs, incorrect behavior) and fix them. Skip
72
72
| 63c906f9d | Set-DbaDbCompression - Add SortInTempDB parameter and fix views T-SQL bug (#10248) | DONE | Fixed indexed-view output/error metadata to use the view name instead of a stale table reference; added integration regression test. |
| 232395207 | Set-DbaPrivilege, Get-DbaPrivilege - Add CreateGlobalObjects privilege support (#10235) | DONE | Fixed empty privilege-entry updates so Set-DbaPrivilege still grants rights when secedit exports a blank line; added unit regression test. |
Copy file name to clipboardExpand all lines: public/Get-DbaDbRestoreHistory.ps1
+2-5Lines changed: 2 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ function Get-DbaDbRestoreHistory {
86
86
- BackupStartDate: Timestamp when the backup operation started
87
87
- BackupFinishDate: Timestamp when the backup operation completed
88
88
- StopAt: The point-in-time stop value specified during the restore operation (NULL if not specified)
89
-
- LastRestorePoint: The effective point in time the database was restored to (StopAt if specified and earlier than BackupStartDate, otherwise BackupStartDate)
89
+
- LastRestorePoint: The effective point in time the database was restored to (StopAt if specified, otherwise BackupStartDate)
90
90
91
91
All properties from the underlying DataRow object are accessible using Select-Object *.
92
92
@@ -188,10 +188,7 @@ function Get-DbaDbRestoreHistory {
188
188
bs.backup_finish_date,
189
189
bs.backup_finish_date AS BackupFinishDate,
190
190
rsh.stop_at AS StopAt,
191
-
CASE
192
-
WHEN COALESCE(rsh.stop_at, '9999-12-31') < bs.backup_start_date THEN rsh.stop_at
193
-
ELSE bs.backup_start_date
194
-
END AS LastRestorePoint
191
+
COALESCE(rsh.stop_at, bs.backup_start_date) AS LastRestorePoint
0 commit comments