alibaba / alibaba/druid

SQLUtils.parseStatements解析报错

Open
#3,965 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
28.2k
Forks
8.6k
PR merge metrics
No merged PRs in 30d

Description

执行SQLUtils.parseStatements(SLQ,"mysql")
当SQL=grant create,insert on 'db'.'name' to 'dbedit'@'%'; 报错:com.alibaba.druid.sql.parser.ParserException:TODO:COMMMA.
当SQL=grant create,insert on 'db'.'name' to 'dbedit'@'%'; 执行正常。
麻烦修复下~

Contributor guide

Open the contributing guide

Research direction

Start with SQLUtils.parseStatements and reproduce the reported MySQL GRANT statement, including the ParserException with TODO:COMMMA. Trace the parser path for the privilege list and verify that the statement completes without an exception after the issue is fixed.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, sql
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.