Skip to content

Commit

Permalink
[vt/sqlparser] Use strings.Builder in compliantName
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Morozov <lk4d4math@gmail.com>
  • Loading branch information
LK4D4 committed Dec 19, 2018
1 parent 9020e48 commit dba155b
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 dba155b

Please sign in to comment.