Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Dropping multiple tables IF EXISTS is not supported #2065

Open
awei2024 opened this issue Aug 28, 2024 · 0 comments
Open

[FEATURE] Dropping multiple tables IF EXISTS is not supported #2065

awei2024 opened this issue Aug 28, 2024 · 0 comments
Labels
DDL DDL statement related exotic MySQL MySQL specific issue Sponsor needed

Comments

@awei2024
Copy link

awei2024 commented Aug 28, 2024

Always check against the Latest SNAPSHOT of JSQLParser and the Syntax Diagram

Failing SQL Feature:

-Unable to resolve, sign in DROP statement
Exception in thread "main" net.sf.jsqlparser.JSQLParserException: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "," ","
at line 1, column 25.

Was expecting one of:

"CASCADE"
"ON"
"RESTRICT"
<EOF>
<ST_SEMICOLON>
<S_IDENTIFIER>

at net.sf.jsqlparser.parser.CCJSqlParserUtil.parseStatement(CCJSqlParserUtil.java:352)
at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:125)
at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:91)
at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:64)
at Test.main(Test.java:40)

Caused by: java.util.concurrent.ExecutionException: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "," ","
at line 1, column 25.

Was expecting one of:

"CASCADE"
"ON"
"RESTRICT"
<EOF>
<ST_SEMICOLON>
<S_IDENTIFIER>

at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:205)
at net.sf.jsqlparser.parser.CCJSqlParserUtil.parseStatement(CCJSqlParserUtil.java:345)
... 4 more

Caused by: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "," ","
at line 1, column 25.

Was expecting one of:

"CASCADE"
"ON"
"RESTRICT"
<EOF>
<ST_SEMICOLON>
<S_IDENTIFIER>

at net.sf.jsqlparser.parser.CCJSqlParser.generateParseException(CCJSqlParser.java:42285)
at net.sf.jsqlparser.parser.CCJSqlParser.jj_consume_token(CCJSqlParser.java:42106)
at net.sf.jsqlparser.parser.CCJSqlParser.Statement(CCJSqlParser.java:341)
at net.sf.jsqlparser.parser.CCJSqlParserUtil$1.call(CCJSqlParserUtil.java:341)
at net.sf.jsqlparser.parser.CCJSqlParserUtil$1.call(CCJSqlParserUtil.java:338)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

SQL Example:

  • DROP TABLE IF EXISTS a,b;

Software Information:

  • 4.9
  • MYSQL

Tips:

Unable to resolve, sign in DROP statement

@manticore-projects manticore-projects added MySQL MySQL specific issue DDL DDL statement related exotic Sponsor needed labels Aug 28, 2024
@manticore-projects manticore-projects changed the title [BUG] JSQLParser Version : RDBMS : failing feature description [FEATURE] Dropping multiple tables IF EXISTS is not supported Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DDL DDL statement related exotic MySQL MySQL specific issue Sponsor needed
Projects
None yet
Development

No branches or pull requests

2 participants