Skip to content

Commit b5563e5

Browse files
author
Dmitry Voronov
committed
fix a few TestErrors
Error token is quoted for readability.
1 parent beb3291 commit b5563e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlparser/token.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func (tkn *Tokenizer) Lex(lval *yySymType) int {
143143
func (tkn *Tokenizer) Error(err string) {
144144
buf := bytes.NewBuffer(make([]byte, 0, 32))
145145
if tkn.errorToken != nil {
146-
fmt.Fprintf(buf, "%s at position %v near %s", err, tkn.Position, tkn.errorToken)
146+
fmt.Fprintf(buf, "%s at position %v near '%s'", err, tkn.Position, tkn.errorToken)
147147
} else {
148148
fmt.Fprintf(buf, "%s at position %v", err, tkn.Position)
149149
}

0 commit comments

Comments
 (0)