Skip to content

Commit

Permalink
- don't create a copy of the sql string
Browse files Browse the repository at this point in the history
  • Loading branch information
siemiatj committed Oct 18, 2022
1 parent 519a1ba commit f5449ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions macros.go
Expand Up @@ -244,8 +244,7 @@ func Interpolate(driver Driver, query *Query) (string, error) {
}

func getMatches(macroName, rawSQL string) ([][]string, error) {
sqlCopy := rawSQL
parsedInput, err := getMacroMatches(sqlCopy, macroName)
parsedInput, err := getMacroMatches(rawSQL, macroName)

if err != nil {
return nil, err
Expand Down

0 comments on commit f5449ef

Please sign in to comment.