Open ha666 opened 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'
这个解析器遇到保留字都会报这种错误好像,table, tables, databases等等
result: