Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go build failure in project 2 test file #69

Open
ClSlaid opened this issue Jan 16, 2021 · 0 comments
Open

go build failure in project 2 test file #69

ClSlaid opened this issue Jan 16, 2021 · 0 comments

Comments

@ClSlaid
Copy link

ClSlaid commented Jan 16, 2021

Environment Details:
System:  Manjaro Linux x86_64
Kernel: 5.10.7-1-MANJARO
Go Version: 1.15.6

find a bug in tinysql/parser/lexer_test.go
if run go test under directory tinysql/parser, go build would fail with

# github.com/pingcap/tidb/parser
./lexer_test.go:199:12: conversion from untyped int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
FAIL    github.com/pingcap/tidb/parser [build failed]

by changing line 199 solve the problem

// {`'\Z'`, string(26)},
{`'\z'`, string(rune(26))},

this error may be caused by higher Go version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant