GeezerVison is showing github.com — [BUG] 4.7: MySQL : Alter Add Key Encountered unexpected token: "comment" "COMMENT" · Issue #1906 · JSQLParser/JSqlParser
[BUG] 4.7: MySQL : Alter Add Key Encountered unexpected token: "comment" "COMMENT" #1906
Description
Always check against the Latest SNAPSHOT of JSQLParser and the Syntax Diagram
Failing SQL Feature:
net.sf.jsqlparser.JSQLParserException: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "comment" "COMMENT"
at line 1, column 51.
Was expecting one of:
","
"DEFERRABLE"
"DISABLE"
"ENABLE"
"NOT"
"NOVALIDATE"
"USING"
"VALIDATE"
<EOF>
<ST_SEMICOLON>
at net.sf.jsqlparser.parser.CCJSqlParserUtil.parseStatement(CCJSqlParserUtil.java:315)
at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:116)
at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:85)
at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:62)
SQL Example:
alter table `student` add key `idx_name` (`name`) comment 'index name';
Software Information:
- JSqlParser version 4.7
- MySQL
Activity
added 2 commits that reference this issue
on Dec 15, 2023This issue will close once commit 084354f is merged into the 'master' branch.084354f This issue will close once commit af73c84 is merged into the 'master' branch.af73c84 added a commit that references this issue
on Dec 15, 2023This issue will close once commit 262ef55 is merged into the 'master' branch.262ef55 linux2014linux commented on Dec 19, 2023
manticore-projects commented on Dec 19, 2023
The changes and improvements are in JSQLParser 4.8 SNAPSHOT only and I would like to advise to use the snapshot version.
Reacted by linux2014linux
linux2014linux commented on Dec 19, 2023
The changes and improvements are in JSQLParser 4.8 SNAPSHOT only and I would like to advise to use the snapshot version.
Ok, I should use it which mvn version.
manticore-projects commented on Dec 19, 2023
Reacted by linux2014linux and 梦境迷离
Metadata
Metadata
Development
No branches or pull requestsIssue actions