Skip to content

Commit

Permalink
Remove arg
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-artie committed Apr 22, 2024
1 parent b7a0884 commit 84ee45b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sql/escape.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ func EscapeNameIfNecessary(name string, uppercaseEscNames bool, args *NameArgs)
return name
}

if needsEscaping(name, uppercaseEscNames, args.DestKind) {
if needsEscaping(name, args.DestKind) {
return escapeName(name, uppercaseEscNames, args.DestKind)
}

return name
}

func needsEscaping(name string, uppercaseEscNames bool, destKind constants.DestinationKind) bool {
func needsEscaping(name string, destKind constants.DestinationKind) bool {
var reservedKeywords []string
if destKind == constants.Redshift {
reservedKeywords = constants.RedshiftReservedKeywords
Expand Down

0 comments on commit 84ee45b

Please sign in to comment.