Skip to content

Commit

Permalink
Merge pull request #4470 from LK4D4/builder_names
Browse files Browse the repository at this point in the history
[vt/sqlparser] Use strings.Builder in compliantName
  • Loading branch information
sougou authored Dec 19, 2018
2 parents 9020e48 + dba155b commit b2b6db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/sqlparser/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -3691,7 +3691,7 @@ mustEscape:
}

func compliantName(in string) string {
var buf bytes.Buffer
var buf strings.Builder
for i, c := range in {
if !isLetter(uint16(c)) {
if i == 0 || !isDigit(uint16(c)) {
Expand Down

0 comments on commit b2b6db5

Please sign in to comment.