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
@@ -124,7 +124,7 @@ Find real bugs (logic errors, null refs, incorrect behavior) and fix them. Skip
124
124
| 1662d73a6 | New-DbaDatabase - Support Azure Blob Storage paths for data and log files (#10315) | DONE | Preserved rooted Data/Log paths for validation while still trimming file names; added unit regression tests. |
125
125
| 241a118ce | Test-DbaDbCompression, Get-DbaDbPageInfo - Normalize table names via Get-ObjectNameParts (#10313) | DONE | Preserved schema-/database-qualified table matching and escaped SQL literals; added unit regression tests. |
126
126
| 14a47a26c | Export-DbaCsv, Export-DbaDacPackage - Normalize table/schema names via Get-ObjectNameParts (#10314) | DONE | Export-DbaCsv invalid-name handling was already fixed by follow-up 74a2d1ae1; this review added Export-DbaDacPackage table-name validation and a unit regression test.
127
-
| fe639f6e6 | Remove-DbaDbTableData - Normalize table name via Get-ObjectNameParts (#10316) |PENDING ||
127
+
| fe639f6e6 | Remove-DbaDbTableData - Normalize table name via Get-ObjectNameParts (#10316) |DONE | Preserved database..table names, escaped ] in rebuilt identifiers, and added regression coverage.|
128
128
| 070d2ee7f | Fix AppVeyor dbatools.library cache miss by installing to AllUsers scope (#10335) | PENDING ||
129
129
| e3f6cc121 | Fix test for Invoke-DbaAdvancedUpdate (#10334) | PENDING ||
130
130
| 6aafd24ed | Fix test for Test-DbaSpn by suppressing the warning on AppVeyor (#10331) | PENDING ||
Copy file name to clipboardExpand all lines: public/Remove-DbaDbTableData.ps1
+17-3Lines changed: 17 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -218,12 +218,26 @@ function Remove-DbaDbTableData {
218
218
219
219
if (Test-Bound Table) {
220
220
$nameParts=Get-ObjectNameParts-ObjectName $Table
221
+
if (-not$nameParts.Parsed) {
222
+
Stop-Function-Message "Please check you are using proper one-, two-, or three-part names. If your table name contains special characters you must use [ ] to wrap the name. The value $Table could not be parsed as a valid table name."
(Invoke-DbaQuery-SqlInstance $server-Database $dbnameSimpleModel-Query "SELECT COUNT(1) AS [RowCount] FROM [dbo].[Test]]Name]").RowCount | Should -Be 0
312
+
}
178
313
}
179
314
180
315
Context "Functionality with bulk_logged recovery model" {
0 commit comments