Skip to content

Commit

Permalink
Import-StoredProcedure
Browse files Browse the repository at this point in the history
Fixing Rename Short-circuit evaluation
  • Loading branch information
James Brundage committed Apr 2, 2023
1 parent 21d3656 commit b5bdf33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Commands/SQL/Import-StoredProcedure.ps1
Expand Up @@ -219,7 +219,9 @@ function Import-StoredProcedure
if (-not $ThisCommandsVerb) { $ThisCommandsVerb = "Invoke" }
if (-not $ThisCommandsNoun) { $ThisCommandsNoun = $sprocName }
$thisCommandName = $ThisCommandsVerb+'-'+$ThisCommandsNoun
if ($Rename.Count -and $Rename[$thisCommandName] -or $rename[$sprocName]) {
if ($Rename.Count -and
($Rename[$thisCommandName] -or $rename[$sprocName])
) {
$thisCommandName =
if ($Rename[$thisCommandName]) {
$Rename[$thisCommandName]
Expand Down

0 comments on commit b5bdf33

Please sign in to comment.