Skip to content

Commit 482262d

Browse files
committed
more avoid sprintf
1 parent 3d462e3 commit 482262d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

sql/analyzer/fix_exec_indexes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func (s *idxScope) addSchema(sch sql.Schema) {
170170
if c.Source == "" {
171171
s.columns = append(s.columns, c.Name)
172172
} else {
173-
s.columns = append(s.columns, fmt.Sprintf("%s.%s", c.Source, c.Name))
173+
s.columns = append(s.columns, c.Source+"."+c.Name)
174174
}
175175
}
176176
}

sql/planbuilder/scope.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
package planbuilder
1616

1717
import (
18-
"fmt"
1918
"strings"
2019

2120
ast "github.com/dolthub/vitess/go/vt/sqlparser"
@@ -638,6 +637,6 @@ func (c scopeColumn) String() string {
638637
if c.table == "" {
639638
return c.col
640639
} else {
641-
return fmt.Sprintf("%s.%s", c.table, c.col)
640+
return c.table + "+" + c.col
642641
}
643642
}

0 commit comments

Comments
 (0)