Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sql/analyzer/fix_exec_indexes.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func (s *idxScope) addSchema(sch sql.Schema) {
if c.Source == "" {
s.columns = append(s.columns, c.Name)
} else {
s.columns = append(s.columns, fmt.Sprintf("%s.%s", c.Source, c.Name))
s.columns = append(s.columns, c.Source+"."+c.Name)
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions sql/expression/get_field.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ func (p *GetField) WithChildren(children ...sql.Expression) (sql.Expression, err
func (p *GetField) String() string {
if p.table == "" {
if p.backTickNames {
return fmt.Sprintf("`%s`", p.name)
return "`" + p.name + "`"
}
return p.name
}
return fmt.Sprintf("%s.%s", p.table, p.name)
return p.table + "." + p.name
}

func (p *GetField) DebugString() string {
Expand Down
3 changes: 1 addition & 2 deletions sql/planbuilder/scope.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
package planbuilder

import (
"fmt"
"strings"

ast "github.com/dolthub/vitess/go/vt/sqlparser"
Expand Down Expand Up @@ -638,6 +637,6 @@ func (c scopeColumn) String() string {
if c.table == "" {
return c.col
} else {
return fmt.Sprintf("%s.%s", c.table, c.col)
return c.table + "." + c.col
}
}