diff --git a/pkg/sql/sem/builtins/all_builtins.go b/pkg/sql/sem/builtins/all_builtins.go index e118100f27d2..f707eb6d660a 100644 --- a/pkg/sql/sem/builtins/all_builtins.go +++ b/pkg/sql/sem/builtins/all_builtins.go @@ -98,7 +98,8 @@ func addResolvedFuncDef( } func registerBuiltin(name string, def builtinDefinition) { - for _, overload := range def.overloads { + for i := range def.overloads { + overload := &def.overloads[i] fnCount := 0 if overload.Fn != nil { fnCount++ diff --git a/pkg/sql/sem/builtins/geo_builtins.go b/pkg/sql/sem/builtins/geo_builtins.go index f3bd40b0dfd0..e86fcd41531b 100644 --- a/pkg/sql/sem/builtins/geo_builtins.go +++ b/pkg/sql/sem/builtins/geo_builtins.go @@ -7416,7 +7416,7 @@ func appendStrArgOverloadForGeometryArgOverloads(def builtinDefinition) builtinD copy(newOverloads, def.overloads) for i := range def.overloads { - // Define independntly as it is used by a closure below. + // Define independently as it is used by a closure below. ov := def.overloads[i] paramTypes, ok := ov.Types.(tree.ParamTypes)