xwb1989 / sqlparser

SQL Parser implemented in Go
Apache License 2.0
1.49k stars 240 forks source link

syntax error at position 45 near 'processlist' #47

Open ha666 opened 5 years ago

ha666 commented 5 years ago
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 commented 1 year ago

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