Skip to content

Commit

Permalink
exceptions checks are stricter (do Invoke-DbaQuery)
Browse files Browse the repository at this point in the history
  • Loading branch information
niphlod committed Oct 21, 2024
1 parent c284f1a commit f681e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Invoke-DbaQuery.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ SELECT 2
$result = Invoke-DbaQuery -SqlInstance $TestConfig.instance2 -Database tempdb -Query $q -NoExec
$result | Should -BeNullOrEmpty

{ Invoke-DbaQuery -SqlInstance $TestConfig.instance2 -Database tempdb -Query "SELEC p FROM c" -NoExec -EnableException } | Should -Throw "Incorrect syntax near 'SELEC'"
{ Invoke-DbaQuery -SqlInstance $TestConfig.instance2 -Database tempdb -Query "SELEC p FROM c" -NoExec -EnableException } | Should -Throw "Incorrect syntax near 'SELEC'."
}

It "supports dropping temp objects (#8472)" {
Expand Down

0 comments on commit f681e78

Please sign in to comment.