From f5449efdfbdb040b4c3656211027c6334bacfd69 Mon Sep 17 00:00:00 2001 From: Kuba Siemiatkowski Date: Tue, 18 Oct 2022 17:29:41 +0200 Subject: [PATCH] - don't create a copy of the sql string --- macros.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/macros.go b/macros.go index e74e9fa..1f411d3 100644 --- a/macros.go +++ b/macros.go @@ -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