Skip to content

Commit 7b77937

Browse files
committed
fixed vet errors
1 parent 8e87555 commit 7b77937

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

optgen/cmd/support/memo_gen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func (g *MemoGen) genScalarInterfaces(defn ExprDef) {
132132

133133
func (g *MemoGen) genStringer(defn ExprDef) {
134134
fmt.Fprintf(g.w, "func (r *%s) String() string {\n", defn.Name)
135-
fmt.Fprint(g.w, " return fmt.Sprintf(\"%s\", r)\n")
135+
fmt.Fprintf(g.w, " return fmt.Sprintf(\"%%s\", r)\n")
136136
fmt.Fprintf(g.w, "}\n\n")
137137
}
138138

sql/memo/expr_group.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ func (e *ExprGroup) CostTreeString(prefix string) string {
265265
// BestPlanDebugString returns a string representation of the physical best plan for use in cost debug printing
266266
func (e *ExprGroup) BestPlanDebugString() string {
267267
tp := sql.NewTreePrinter()
268-
tp.WriteNode(fmt.Sprintf("G%d [%s] Cost: %.1f", e.Id, e.Best, e.Best.Cost()))
268+
tp.WriteNode("G%d [%s] Cost: %.1f", e.Id, e.Best, e.Best.Cost())
269269
children := e.Best.Children()
270270
childrenStrings := make([]string, len(children))
271271
for i, c := range children {

0 commit comments

Comments
 (0)