alibaba / alibaba/druid

错误sql语法, MySqlStatementParser.parseStatement() 不报错, parseStatementList() 报syntax error,为什么parseStatement不报错

Open
#2,199 1 comment 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

错误sql语法, MySqlStatementParser.parseStatement() 不报错, parseStatementList() 报syntax error,为什么parseStatement不报错 , 2者还有区别吗 ?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the malformed SQL with MySqlStatementParser.parseStatement() and parseStatementList(). Compare the two entry points to determine why only the list parser reports a syntax error. Done means the distinction is explained and, if it is unintended, the parser behavior is made consistent with a regression check.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, mysql, sql
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.