Skip to content

Commit 8452dee

Browse files
author
Calvin Tapp
committed
Small change to not inadvertanly throw error
1 parent 70c8d54 commit 8452dee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CommonFunctions/Public/Invoke-Sql.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function Invoke-Sql {
9696
Write-Verbose "Executing SQL Command..."
9797
Write-Verbose $cmd.CommandText
9898
$result = $cmd.ExecuteNonQuery()
99-
if ($result -gt 0) {
99+
if ($result -ge -1) {
100100
Write-Verbose "Successfully Executed Command"
101101
return $result
102102
}

0 commit comments

Comments
 (0)