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

syntax error at position 45 near 'processlist' #47

Open
ha666 opened this issue Mar 29, 2019 · 1 comment
Open

syntax error at position 45 near 'processlist' #47

ha666 opened this issue Mar 29, 2019 · 1 comment

Comments

@ha666
Copy link

ha666 commented Mar 29, 2019

stmt, err := sqlparser.Parse(`select * from information_schema.processlist`)
if err != nil {
	log.Println("解析错误:", err.Error())
	return
}
log.Println(stmt)

result:

2019/03/29 15:31:38 解析错误: syntax error at position 45 near 'processlist'
@Mrsandman327
Copy link

这个解析器遇到保留字都会报这种错误好像,table, tables, databases等等

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

2 participants